Bug 48681 - The signature or decryption was invalid (Cannot setup signature data structure)
Summary: The signature or decryption was invalid (Cannot setup signature data structure)
Status: RESOLVED DUPLICATE of bug 40897
Alias: None
Product: Security - Now in JIRA
Classification: Unclassified
Component: Signature (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: XML Security Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-04 10:36 UTC by iyappanr@smdi.com
Modified: 2010-10-17 14:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iyappanr@smdi.com 2010-02-04 10:36:50 UTC
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.
Comment 1 coheigea 2010-02-05 03:00:41 UTC
What SAAJ implementation are you using? What version of WSS4J?

Colm.
Comment 2 coheigea 2010-02-19 11:54:45 UTC
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.
Comment 3 coheigea 2010-10-17 14:54:14 UTC
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 ***