java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException

Spring JIRA | Arjen Poutsma | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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)

    Spring JIRA | 9 years ago | Arjen Poutsma
    java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException
  2. 0

    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)

    Spring JIRA | 9 years ago | Arjen Poutsma
    java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException
  3. 0

    Axis Ws-Security

    Oracle Community | 1 decade ago | 843833
    java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    codeautomate blog ยป XML Digital Signature using WSS4J

    codeautomate.org | 1 year ago
    java.lang.NoClassDefFoundError: org/apache/jcp/xml/dsig/internal/dom/XMLDSigRI

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/xml/utils/URI$MalformedURIException

      at org.apache.ws.security.message.WSSecSignature.prepare()
    2. Apache WSS4J
      WSHandler.doSenderAction
      1. org.apache.ws.security.message.WSSecSignature.prepare(WSSecSignature.java:358)
      2. org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:721)
      3. org.apache.ws.security.action.SignatureAction.execute(SignatureAction.java:54)
      4. org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
      4 frames
    3. org.springframework.ws
      AbstractWsSecurityInterceptor.handleRequest
      1. org.springframework.ws.soap.security.wss4j.Wss4jHandler.doSenderAction(Wss4jHandler.java:162)
      2. org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor.secureMessage(Wss4jSecurityInterceptor.java:450)
      3. org.springframework.ws.soap.security.AbstractWsSecurityInterceptor.handleRequest(AbstractWsSecurityInterceptor.java:182)
      3 frames
    4. Spring WS Core
      WebServiceTemplate.sendSourceAndReceiveToResult
      1. org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:480)
      2. org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:440)
      3. org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:395)
      4. org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:341)
      5. org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:332)
      6. org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:322)
      6 frames