On Wed December 9 2009 5:47:05 pm KARR, DAVID (ATTCINW) wrote: > I'm running WebLogic 10MP1. I'm assembling an application using > CXF-2.2.5, 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.*").
You may need to add some more if you are using jaxb-impl in the ear/war. Probably all of com.sun.xml.bind.* (not just v2 stuff) and maybe even the javax.xml.bind.* stuff. Dan > > 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. > > Any ideas? > -- Daniel Kulp [email protected] http://www.dankulp.com/blog
