Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ugrading jaxb-rt-1.0.ea.jar to work with jre 1.6

843834Jul 2 2010 — edited Jul 2 2010
I have an application that uses objects in jaxb-rt-1.0.ea.jar that we'd like to upgrade to run on Java 1.6. The problem is that in Java 1.6, the javax.xml.bind package is included, and this package has classes with the same name as are in jaxb-rt-1.0.ea.jar, but with different methods (and, of course, they do different things). But it doesn't include ALL the classes -- some of them, like the original MarshallableObject class -- are gone. So when we try to run the application with the jaxb-rt-1.0.ea.jar file in the CLASSPATH under 1.6, the application blows up because the classes within the JRE are loaded prior to the ones in the jar file and we get all sorts of errors.

Tried changing the order of the classpath (with jaxb-rt-1.0.ea.jar to be loaded first and then jre 1.6, but still facing the same problem)

I do not face any issue, when i try to run in jre 1.5, since the package javax.xml.bind package is not included within jre 1.5 and all the concerned classes are loaded from my jaxb-rt-1.0.ea.jar.

any way to Resolve this issue??

With Regards,
Allen
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2010
Added on Jul 2 2010
1 comment
305 views