You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Matt Magoffin <sp...@msqr.us> on 2004/08/05 00:18:37 UTC

unable to compile with xs:import ?

Hello, I'm wondering if I'm setting up my schema incorrectly to use
xs:import. Given the two attached schemas, the 'core.xsd' schema generates
fine via Ant with

<xjc schema="${dir.schema}/core.xsd"
    target="${dir.generated}">
  <produces includes="magoffin/matt/ieat/domain/*.java" />
</xjc>

however trying to do 'ui.xsd' (which includes core.xsd) via

<xjc schema="${dir.schema}/ui.xsd"
    target="${dir.generated}">
  <produces includes="magoffin/matt/ieat/domain/*.java" />
</xjc>

produces the following error:

BUILD FAILED: C:\workspace3\ieatdb\build.xml:41:
org.apache.ws.jaxme.xs.parser.impl.LocSAXException: At
file:/C:/workspace3/ieatdb/defs/schema/ui.xsd, line 27: Invalid element:
The type {http://msqr.us/xsd/ieat}recipe is not defined.

Any help would be appreciated! Thanks,
m@



Re: unable to compile with xs:import ?

Posted by Matt Magoffin <sp...@msqr.us>.
Ugh, please excuse my two previous emails, I must have been asleep at the
wheel... I had xs:element's instead of xs:complexTypes.

Sorry!
-- m@



---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: unable to compile with xs:import ?

Posted by Matt Magoffin <sp...@msqr.us>.
Actually it doesn't appear to be anything to do with the xs:import. This
attachement shows two elements defined in the same schema file, but still
the error occurs:

BUILD FAILED: C:\workspace3\ieatdb\build.xml:34:
org.apache.ws.jaxme.xs.parser.impl.LocSAXException: At
file:/C:/workspace3/ieatdb/defs/schema/core.xsd, line 39: Invalid element:
The type {http://msqr.us/xsd/ieat}recipe is not defined.

Again, any help would be appreciated! Thanks,
m@

> Hello, I'm wondering if I'm setting up my schema incorrectly to use
> xs:import. Given the two attached schemas, the 'core.xsd' schema
> generates fine via Ant with
>
> <xjc schema="${dir.schema}/core.xsd"
>     target="${dir.generated}">
>   <produces includes="magoffin/matt/ieat/domain/*.java" />
> </xjc>
>
> however trying to do 'ui.xsd' (which includes core.xsd) via
>
> <xjc schema="${dir.schema}/ui.xsd"
>     target="${dir.generated}">
>   <produces includes="magoffin/matt/ieat/domain/*.java" />
> </xjc>
>
> produces the following error:
>
> BUILD FAILED: C:\workspace3\ieatdb\build.xml:41:
> org.apache.ws.jaxme.xs.parser.impl.LocSAXException: At
> file:/C:/workspace3/ieatdb/defs/schema/ui.xsd, line 27: Invalid element:
> The type {http://msqr.us/xsd/ieat}recipe is not defined.
>
> Any help would be appreciated! Thanks,
> m@