Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » 3.2 Migration Question
3.2 Migration Question [message #171501] Fri, 16 June 2006 18:43 Go to next message
Lenora Wright is currently offline Lenora Wright
Messages: 15
Registered: July 2009
Junior Member
I am migrating my plugin from eclipse 3.1.2 to 3.2. My current versions
are:
Eclipse Platform
Version: 3.2.0.v20060525a-_OZ2g6CPhlzUdGe
Build id: I20060526-0010

Web Standard Tools
Version: 1.5.0.v200605221430-U-z2nUPIcqVPbf1
Build id: 200605310507

I use the org.eclipse.wst.common.project.facet.core.facets extension
point, but receive the following errors:
Element 'facet' is not legal as a child of element 'preset'.
Element 'fixed' is not legal as a child of element 'template'.

The schema does not appear to have changed and I see no reference to this
in the Migration Guide I managed to dig up. What am I missing?

Here is the snippet from plugin.xml
<preset id="abc">
<label>%abcPRESET</label>
<facet id="jst.java" version="5.0"/>
<facet id="jst.web" version="2.3"/>
<facet id="myID" version="1.0"/>
<facet id="com.ibm.websphere.coexistence.web" version="6.1"/>
<facet id="com.ibm.websphere.extended.web" version="6.1"/>
</preset>
<template id="def">
<label>%defTEMPLATE</label>
<fixed facet="jst.java"/>
<fixed facet="jst.utility"/>
<fixed facet="myID"/>
</template>
Re: 3.2 Migration Question [message #171505 is a reply to message #171501] Fri, 16 June 2006 19:18 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
I see those, and others, in both my 1.0.x and 1.5 development
workspaces. I think they are "normal". For me, I see them reported as
warnings. Maybe something in your 3.2/1.5 environment upgraded them to
errors?

Cheers,
Larry

Lenora wrote:
> I am migrating my plugin from eclipse 3.1.2 to 3.2. My current versions
> are:
> Eclipse Platform
> Version: 3.2.0.v20060525a-_OZ2g6CPhlzUdGe
> Build id: I20060526-0010
>
> Web Standard Tools
> Version: 1.5.0.v200605221430-U-z2nUPIcqVPbf1
> Build id: 200605310507
>
> I use the org.eclipse.wst.common.project.facet.core.facets extension
> point, but receive the following errors:
> Element 'facet' is not legal as a child of element 'preset'.
> Element 'fixed' is not legal as a child of element 'template'.
>
> The schema does not appear to have changed and I see no reference to
> this in the Migration Guide I managed to dig up. What am I missing?
>
> Here is the snippet from plugin.xml
> <preset id="abc">
> <label>%abcPRESET</label>
> <facet id="jst.java" version="5.0"/> <facet
> id="jst.web" version="2.3"/>
> <facet id="myID" version="1.0"/>
> <facet id="com.ibm.websphere.coexistence.web" version="6.1"/>
> <facet id="com.ibm.websphere.extended.web" version="6.1"/>
> </preset> <template id="def">
> <label>%defTEMPLATE</label>
> <fixed facet="jst.java"/> <fixed
> facet="jst.utility"/>
> <fixed facet="myID"/>
> </template>
>
>
Re: 3.2 Migration Question [message #171509 is a reply to message #171505] Fri, 16 June 2006 19:42 Go to previous messageGo to next message
Lenora Wright is currently offline Lenora Wright
Messages: 15
Registered: July 2009
Junior Member
Hey, you're right. They are reported as warnings. Since I am having
problems with creating my project, I zeroed in on these as the culprit.
In my eclipse 3.1.2/wtp 1.0.2 environment, no warnings appear. I guess
I'll continue clearing other problems and maybe these warnings will have
no adverse effects.
Re: 3.2 Migration Question [message #171541 is a reply to message #171501] Fri, 16 June 2006 21:21 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
Lenora wrote:
> I am migrating my plugin from eclipse 3.1.2 to 3.2. My current versions
> are:
> Eclipse Platform
> Version: 3.2.0.v20060525a-_OZ2g6CPhlzUdGe
> Build id: I20060526-0010
>
> Web Standard Tools
> Version: 1.5.0.v200605221430-U-z2nUPIcqVPbf1
> Build id: 200605310507
>
> I use the org.eclipse.wst.common.project.facet.core.facets extension
> point, but receive the following errors:
> Element 'facet' is not legal as a child of element 'preset'.
> Element 'fixed' is not legal as a child of element 'template'.
>
> The schema does not appear to have changed and I see no reference to
> this in the Migration Guide I managed to dig up. What am I missing?
>
> Here is the snippet from plugin.xml
> <preset id="abc">
> <label>%abcPRESET</label>
> <facet id="jst.java" version="5.0"/> <facet
> id="jst.web" version="2.3"/>
> <facet id="myID" version="1.0"/>
> <facet id="com.ibm.websphere.coexistence.web" version="6.1"/>
> <facet id="com.ibm.websphere.extended.web" version="6.1"/>
> </preset> <template id="def">
> <label>%defTEMPLATE</label>
> <fixed facet="jst.java"/> <fixed
> facet="jst.utility"/>
> <fixed facet="myID"/>
> </template>

Reading the reference for the
org.eclipse.wst.common.project.facet.core.facets extension, it
declares that "preset" may only have one child "facet" element and
that "template" elements may only have one "fixed" child element.
The warnings sound valid to me.

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Howto change deploying path
Next Topic:EAR LIbrary container
Goto Forum:
  


Current Time: Sat Oct 25 14:53:26 GMT 2014

Powered by FUDForum. Page generated in 0.04704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software