Skip to main content

Re: JAXB and JDK 6 issues

2 replies [Last post]
Anonymous

Rajeev,

I am trying to migrate from JDK1.4 to JDK1.6.

I downloaded the JAXRi 2.1.10 and placed the jaxb_api.jar and jaxb_impl.jar
in jre6/lib/endorsed.

I also have in my
bindings file as the JAXB1.0 generated interfaces whereas JAXB2.x generates
classes.

Still I am generating far fewer classes - same issue that you had faced.
Does not generate classes for element with just annotations. Can you help?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
snajper
Offline
Joined: 2004-10-01
Points: 0

On 5/15/12 3:24 PM, Lnaik wrote:
> Rajeev,
>
> I am trying to migrate from JDK1.4 to JDK1.6.
>
> I downloaded the JAXRi 2.1.10 and placed the jaxb_api.jar and jaxb_impl.jar
> in jre6/lib/endorsed.
This is certainly wrong. You should not put the impl jar to endorsed
dir. Only api belongs there. Put impl to your classpath only,
MartiNG

> I also have in my
> bindings file as the JAXB1.0 generated interfaces whereas JAXB2.x generates
> classes.
>
> Still I am generating far fewer classes - same issue that you had faced.
> Does not generate classes for element with just annotations. Can you help?

Lnaik

I have posted a portion of my build.xml. I have put jaxb-impl.jar in
classpath to xjc. Does not generate all required classes. I have
jaxb-api.jar in jre6/lib/endorsed. Please can you suggest where I am going
wrong