I'm running WebLogic 10MP1. I'm constructing an application that uses
CXF, which uses jaxb-api-2.1.jar and jaxb-impl-2.1.12.jar.
After I put those jars into WEB-INF/lib and restarted, I got the
following:
java.lang.ClassCastException:
com.sun.xml.bind.v2.runtime.JAXBContextImpl
at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:150)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at
org.apache.cxf.wsdl.JAXBExtensionHelper.createJAXBContext(JAXBExtensionH
elper.java:196)
I'm using "prefer-web-inf-classes" in weblogic.xml and
"prefer-application-packages" in weblogic-application.xml (specifying
"javax.wsdl.*" and "com.sun.xml.bind.v2.*").
In my searches, I've found other people who have run into this in
WebLogic and other servers, but I haven't found anyone who's resolved
this problem.