users@jaxb.java.net

Re: xjc doesn't generate namespace info for _at_XmlType

From: Andreas Pakulat <pakulat_at_rostock.zgdv.de>
Date: Thu, 30 Mar 2006 15:46:46 +0200

Andreas Pakulat schrieb:
> Hi,
>
> the generated java sources don't have @XmlType.namespace set, which lets
> the JAXBContext creation fail due to Elements that are named the same
> but live in different namespaces.
>
> I tried to look into the JAXB2.0 Spec but I couldn't find how to tell
> xjc to generate the @XmlType.namespace annotation for every class. How
> do I do that?

Seems like something was messed up because I didn't clean the output
dir. Now I do get the @XmlType.namespace annotation for all classes.

Andreas