You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "sophie (Jira)" <ji...@apache.org> on 2020/01/03 22:18:00 UTC

[jira] [Commented] (CXF-6931) Class Loader issue in WebService client

    [ https://issues.apache.org/jira/browse/CXF-6931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007795#comment-17007795 ] 

sophie commented on CXF-6931:
-----------------------------

What does that mean? Does one of your application already have javax packages in another version, so it collides with xmlsec.jar?  Does cxf official site give any guideline or other related document? Thx

> 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
>            Priority: Major
>             Fix For: 3.0.9
>
>
> 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
(v8.3.4#803005)