Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-328

Error creating signed message with WSS4J

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5.1
    • Component/s: Security
    • Labels:
      None

      Description

      An exception occurs when attempting sendSourceAndReceiveToResult(source, result). The log indicates the signing method is not correct, but javadoc on setSecurementSignatureAlgorithm() of Wss4jSecurityInterceptor indicates that parameter is igonred. So, perhaps I have a mistake with something else. All unit tests in the attached java file pass, except for the last, which generates the attached log. The first part of the exception text is pasted below.

      java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException
      at org.apache.ws.security.message.WSSecSignature.prepare(WSSecSignature.java:358)
      at org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:721)
      at org.apache.ws.security.action.SignatureAction.execute(SignatureAction.java:54)
      at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
      at org.springframework.ws.soap.security.wss4j.Wss4jHandler.doSenderAction(Wss4jHandler.java:162)
      at org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor.secureMessage(Wss4jSecurityInterceptor.java:450)
      at org.springframework.ws.soap.security.AbstractWsSecurityInterceptor.handleRequest(AbstractWsSecurityInterceptor.java:182)
      at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:480)
      at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:440)
      at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:395)
      at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:341)
      at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:332)
      at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:322)

        Activity

        arjen.poutsma Arjen Poutsma created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Attachment CertificateTest.java [ 13923 ]
        arjen.poutsma Arjen Poutsma made changes -
        Attachment wss4j-beans.xml [ 13924 ]
        arjen.poutsma Arjen Poutsma made changes -
        Attachment CertificateTest.java [ 13923 ]
        arjen.poutsma Arjen Poutsma made changes -
        Attachment wss4j-beans.xml [ 13924 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        The class not found, mentioned in the stacktrace, is in Xalan 2.7.0. Please make sure Xalan 2.7.0 is on the classpath when using WSS4J.

        Show
        arjen.poutsma Arjen Poutsma added a comment - The class not found, mentioned in the stacktrace, is in Xalan 2.7.0. Please make sure Xalan 2.7.0 is on the classpath when using WSS4J.
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing issues for 1.5.1

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing issues for 1.5.1
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        38m 49s 1 Arjen Poutsma 11/Apr/08 9:45 AM
        Resolved Resolved Closed Closed
        24d 11h 35m 1 Arjen Poutsma 05/May/08 9:21 PM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            arjen.poutsma Arjen Poutsma
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: