users@jaxb.java.net

Re: xjc problems with Collada schema....

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 13 Mar 2007 09:44:31 -0700

Some schemas require a binding customization to compile.

See
http://weblogs.java.net/blog/kohsuke/archive/2005/05/compiling_mathm_1.html

You might be interested in using the simple binding mode
http://weblogs.java.net/blog/kohsuke/archive/2006/03/simple_and_bett.html
which probably automatically fixes your problem.

Paul Byrne wrote:
> Hi,
>
> I'm getting errors from xjc on the following schema
> http://www.khronos.org/files/collada_schema_1_4
>
> I'm using xjc 2.0.2. The errors are
>
> paulby_at_lg3d-laptop /cygdrive/c/paulby/code/java_net/lg3d/trunk/collada
> $ jaxb-ri-20060801/bin/xjc.sh -p test collada_schema_1_4_1.xsd
> parsing a schema...
> [ERROR] Property "Source" is already defined.
> line 2671 of
> file:/C:/paulby/code/java_net/lg3d/trunk/collada/collada_schema_1
> _4_1.xsd
>
> [ERROR] The following location is relevant to the above error
> line 2761 of
> file:/C:/paulby/code/java_net/lg3d/trunk/collada/collada_schema_1
> _4_1.xsd
>
> [ERROR] Property "Source" is already defined.
> line 2780 of
> file:/C:/paulby/code/java_net/lg3d/trunk/collada/collada_schema_1
> _4_1.xsd
>
> [ERROR] The following location is relevant to the above error
> line 2829 of
> file:/C:/paulby/code/java_net/lg3d/trunk/collada/collada_schema_1
> _4_1.xsd
>
> Failed to parse a schema.
>
> I ran the schema through the checkers in Netbeans and it passed without
> issue. Any suggestions greatly appreciated (please cc me directly as I'm
> not sure my subscription to this list has been processed yet).
>
> Rgds
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com