This stack trace line
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
doesn't match the source from JAXB 2.1.12.
Are you sure that there is no other jaxb-api.jar anywhere in the class path?
What jdk version are you using?
-W
On Wed, Dec 9, 2009 at 11:45 PM, KARR, DAVID (ATTCINW) <dk068x_at_att.com>wrote:
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>