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>
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>
>
>
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.
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.