users@jaxb.java.net

Re: JAXB 1.0 - namespace conflict?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 25 Feb 2003 15:35:15 -0800

>
> I've just started going over the new user guide....but this is my first
> problem i'm really not too sure about.
>
> here's what the compiler spits out at me
>
> [ERROR] A property with the same name "Value" is generated from more
> than one schema component.
> line 176 of biblio.xsd
>
> [ERROR] (Relevant to above error) another one is generated from this
> schema component.
> line 253 of datatypes.xsd
>
> and datatypes.xsd isn't one of mine :P

"datatypes.xsd" is the schema-for-schema we internally parse (so that
types defined by W3C XML Schema can be recognized)

The problem in this case is that by default a simple content is mapped
to the property called "value", while you also have an attribute named
"value". And the compiler is complaining that those two are colliding.

To resolve it, you have to use a <property> customization to change the
property name.


regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com