I need help for something that is thrown at me.
I am tasked to build webservices client and the goal is to bundle it in a
jar file to be used in other projects.
I created simple java project and chose CXF-2.4.3 (just randomly) to build
it. Client completed (sort of) and all junit test passed. Bundled it into
the jar file and wrote a very basic web application to access those
services. Bang.Road block.
The server that would be used for its first potential project is jBoss-EAP
5.1.0(native WS stack). After overcoming a few issues I am stuck at the
DOMException exception (below).
Internet searches reveal conflict between technologies (jdk-1.6 and jboss -
saaj, xerces, stax etc.).
I am unable to find any solution that can point me to the right direction.
I am have only my code to find the solution since changing server
configuration is beyond me. Adding an interceptor can be an option but I
don't know what (and how) needs to be done.
This is to keep in mind that during client creation, jboss lib was not
referenced (separate project) only jdk-1.6 and cxf-2.4.3. For web
application I used the necessary jars required by cxf in my class path and
the rest are from jBoss and jdk.
If I deploy this application to tomcat and jBoss-EAP 5.1.0(CXF stack) it
works just fine.
*Exception:*
org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different
document than the one that created it.
at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown
Source)
at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source)
at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown
Source)
at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)
at
org.jboss.ws.core.soap.SOAPDocument.appendChild(SOAPDocument.java:222)
at
org.jboss.ws.core.soap.SOAPPartImpl.appendChild(SOAPPartImpl.java:297)
at
org.apache.cxf.staxutils.W3CDOMStreamWriter.setChild(W3CDOMStreamWriter.java:114)
at
org.apache.cxf.staxutils.W3CDOMStreamWriter.newChild(W3CDOMStreamWriter.java:104)
at
org.apache.cxf.staxutils.W3CDOMStreamWriter.writeStartElement(W3CDOMStreamWriter.java:132)
at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnvelopeStart(SoapOutInterceptor.java:122
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-client-not-working-in-jBoss-5-1-tp5710122.html
Sent from the cxf-issues mailing list archive at Nabble.com.