Nagaraj C created CXF-6931:
------------------------------

             Summary: Class Loader issue in WebService client
                 Key: CXF-6931
                 URL: https://issues.apache.org/jira/browse/CXF-6931
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.7.18
            Reporter: Nagaraj C


This is related to the issue CXF-4603.
We are having two EARs using xmlsec-1.5.8.  
WS Client works fine for the first time with one of the two applications. 
When we start using the second application we get the following error:
java.lang.ClassCastException: 
org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory incompatible with 
javax.xml.crypto.dsig.XMLSignatureFactory
        at 
javax.xml.crypto.dsig.XMLSignatureFactory.findInstance(XMLSignatureFactory.java:202)
        at 
javax.xml.crypto.dsig.XMLSignatureFactory.getInstance(XMLSignatureFactory.java:292)
        at 
org.apache.ws.security.message.WSSecSignature.init(WSSecSignature.java:127)
        at 
org.apache.ws.security.message.WSSecSignature.<init>(WSSecSignature.java:120)
        at 
org.apache.ws.security.action.SignatureAction.execute(SignatureAction.java:45)
        at 
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:232)
        at 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.access$200(WSS4JOutInterceptor.java:52)
        at 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:265)
        at 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:141)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)


Looks like client is trying to load the DOMXMLSignatureFactory from the JVM 
from the second application. 
Can you please provide the steps to get rid of this error?. 

Thank you.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to