Hi,
I'm extending JAXB classes using implClass customization defined in the
JAXB FAQ and the an email to this group from Sekhar Vajjhala dated
7/8/03. I had no problems generating the classes and they compiled. My
standalone test application had no problems marshalling/unmarshalling
the extended classes. However, I get IncompatibleClassChangeError at run
time when I try to unmarshal xml to Java objects in Tomcat server. I
have checked the server classpath several times and have the same
version of Jaxb jars as I have during compile time and my Jaxb generated
classes are the same version on the client and server.
Here is the stack trace when I try to create a JAXB context using
JAXB.newInstance(packageName) method:
javax.xml.bind.JAXBException: Provider
com.sun.xml.bind.ContextFactory_1_0_1 could not be instantiated:
java.lang.IncompatibleClassChangeError: Implementing class
- with linked exception:
[java.lang.IncompatibleClassChangeError: Implementing class]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:114)
at
javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:229)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
Any help in solving my problem is appreciated.
Thank you,
Raji
-----------------------------------------------------------------------
This message is the property of Time Inc. or its affiliates. It may be
legally privileged and/or confidential and is intended only for the use
of the addressee(s). No addressee should forward, print, copy, or
otherwise reproduce this message in any manner that would allow it to be
viewed by any individual not originally listed as a recipient. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorized disclosure, dissemination, distribution,
copying or the taking of any action in reliance on the information
herein is strictly prohibited. If you have received this communication
in error, please immediately notify the sender and delete this message.
Thank you.