I am having Signature issue while calling a simple webservice. I am using CXF 2.2.4, Spring and Weblogic server. Below is the error log: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body><soap:Fault><faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:FailedCheck</faultcode> <faultstring>The signature or decryption was invalid (Cannot setup signature data structure); nested exception is: org.apache.xml.security.exceptions.XMLSecurityException: Cannot create a http://www.w3.org/2000/09/xmldsig#:Signature from a http://www.w3.org/2000/09/xmldsig#:Signature element </faultstring> </soap:Fault></soap:Body></soap:Envelope> Below is my webservice context.xml file: <jaxws:endpoint id="Hello" implementor="#hello" address="/Hello" > <jaxws:inInterceptors> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor"> <constructor-arg> <map> <entry key="action" value="UsernameTokenSignature UsernameToken"/> <entry key="passwordType" value="PasswordDigest"/> <entry key="user" value="oldcws"/> <entry key="signatureUser" value="ws-client"/> <entry key="signaturePropFile" value="server_sign.properties"/> <entry key="passwordCallbackRef"> <ref bean="passwordCallback"/> </entry> </map> </constructor-arg> </bean> </jaxws:inInterceptors> </jaxws:endpoint> Thank You for looking into it and let me know if you need more details from my side.
What SAAJ implementation are you using? What version of WSS4J? Colm.
What is the exact SAAJ implementation you're using (not just the version - 1.3)? Could you attach what you have on the classpath? Colm.
This looks like it was caused by Bug 40897. In the absence of any further details, I'm marking this as a duplicate: https://issues.apache.org/bugzilla/show_bug.cgi?id=40897 Colm. *** This bug has been marked as a duplicate of bug 40897 ***