Nevermind, I got it working. Just put my stax-api jar in the
-Xbootclasspath Java options in opmn.xml.
-----Original Message-----
From: Sturtz, Charles
Sent: Thursday, April 24, 2008 1:26 PM
To: Glen Mazza; [EMAIL PROTECTED]
Subject: RE: CXF in OC4J
Thanks for your help. I was able to update OC4J with the Xerces parser.
That got me to be able to deploy my application and not break OC4J or
any other apps deployed. Now, I'm at some thing different.
When I hit my service with a SOAP Request, I get the following stack
trace. I've read that linkage errors are usually due to different
versions of the same class, e.g. compiling against v1 and using v2 at
runtime. But, there is only one of this class anywhere under my
application or OC4J. Anyone have any ideas?
Thanks
Chad Sturtz
Accenture - Consultant
java.lang.LinkageError: loader constraints violated when linking
javax/xml/stream/XMLStreamReader class
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.createUnmarshaller(JAXBConte
xtImpl.java:690)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.createUnmarshaller(JAXBConte
xtImpl.java:116)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.createUnmarshaller(JAXBEncoderDec
oder.java:241)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.jav
a:365)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.jav
a:307)
at
org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
at
org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLite
ralInInterceptor.java:182)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hain.java:207)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiati
onObserver.java:73)
at
org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDes
tination.java:79)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(Ser
vletController.java:235)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletControl
ler.java:140)
at
org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:278)
at
org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:711)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.jav
a:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java
:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocke
tReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourceP
ooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
-----Original Message-----
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 23, 2008 11:26 PM
To: [EMAIL PROTECTED]
Cc: Sturtz, Charles
Subject: Re: CXF in OC4J
Chad, I would go ahead and update OC4J with the Xerces parser--that is a
very common procedure for that app server, indeed so common that the
process for it is defined within the OC4J manuals. More information on
this and a few other tricks I have found with OC4J are here:
http://www.jroller.com/gmazza/entry/migrating_spring_based_webapp_from
(as of right now, JRoller is down for some reason, but hopefully will be
back up soon.)
HTH,
Glen
2008-04-23 [EMAIL PROTECTED] wrote:
> I've followed the guide @
>
http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-Disc
> laimer, but still have a problem. After it's all done, my WAR is
trying
> to load orcale's implementation of
> javax.xml.parsers.DocumentBuilderFactory. But, it can't find it
because
> I've unchecked the oracle.xml shared library (as per the guide). The
> only way I could find to get around this was to set a System property
> that forces it to use a different (xerces) implementation. However,
> after doing that, OC4J starts to break because it can't find the
xerces
> implementation.
>
>
>
> Do I have any other options besides setting a system property and then
> going down the path of getting the xerces implementation into OC4J's
> classpath?
>
>
>
> Thanks,
>
>
>
> Chad Sturtz
>
> Accenture - Consultant
>
>
>
>
>
>
>
> This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.