users@jaxb.java.net

Re: No class generated for element with type="int" (xjc)

From: Martin Grotzke <martin.grotzke_at_javakaffee.de>
Date: Tue, 11 Mar 2008 09:14:06 +0100

Hi Aleksei,

thanx for your pointer! Unfortunately, activating simple-minded mode for
xjc doesn't change anything for me - there's still no class generated
for myElement. Should this be the case, or is it expected, that only the
ObjectFactory provides createMyElement?

Btw. I changed the jaxb:version to "2.0", as I already have another
globalBindings that used jaxb:version="2.0" (I don't know if it does
matter).

So my issue is, that no class at all is generated for myElement.

Anything else?

Thanx && cheers,
Martin


On Mon, 2008-03-10 at 17:05 +0100, Aleksei Valikov wrote:
> Hi.
>
> > in my schema I have an element of type int, for that xjc does not
> > generated a java class:
> >
> > <element name="myElement" type="int" />
> >
> > I invoke xjc like this:
> >
> > $ xjc -p org.comp.proj -d target/generated-sources/xjc -verbose src/main/api-schema
> >
> > I would expect that xjc generated a class MyElement annotated with
> > @XmlRootElement.
> >
> > Is this an issue of xjc, or am I doing s.th. wrong?
> >
> > xjc -version gives "JAXB 2.1.3 in JDK 1.6".
>
> http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
>
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>