cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Commented] (CXF-4603) Digital Signature using CXF 2.6.1 on Websphere 7
Date Fri, 26 Oct 2012 13:37:12 GMT


Daniel Kulp commented on CXF-4603:

This might be slightly different.  The crypto things have a "global" registry which seems
to cause issues with the IBM JDK.  You may need to stick the xmlsec library that CXF ships
into the "endorsed" dir and remove it from your war/ear.   That would make sure the crypto
providers that xmlsec provides are using the same classloader and other resources as the rest
of the javax.xml.crypto systems. 

> Digital Signature using CXF 2.6.1 on Websphere 7
> ------------------------------------------------
>                 Key: CXF-4603
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.6.1
>         Environment: Windows Websphere 7, CXF 2.6.1
>            Reporter: ojas
> I am developing web service client and service with digital signature to sign soap message
on Wesbphere 7 using CXF 2.6.1.
> I have folllowed the instruction to make CXF working on Websphere by following link:
> The web service/client works fine without digital signature.
> When I add settings related to digital signature in cxf-servlet.xml and cxf.xml and along
with crypto properties the client fails with follwoing error. I also added all required jars
for security:
> Caused by: java.lang.ClassCastException: incompatible
with javax.xml.crypto.dsig.XMLSignatureFactory
> 	at javax.xml.crypto.dsig.XMLSignatureFactory.findInstance(
> 	at javax.xml.crypto.dsig.XMLSignatureFactory.getInstance(
> 	at
> 	at<init>(
> 	at
> 	at
> 	at$200(
> 	at$WSS4JOutInterceptorInternal.handleMessage(
> 	at$WSS4JOutInterceptorInternal.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.endpoint.ClientImpl.doInvoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
> 	... 39 more
> Any idea why this error occurs when adding WS Security? Is there any work around for
this issue?
> Thanks,
> Ojas

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message