2 Replies Latest reply on Jan 22, 2008 10:44 AM by Jesus Rodriguez

    STRTransform Exception in WS Signing

    Jesus Rodriguez Newbie

      Hi! Finally I got my WS and client running and signing messages.. Server receives SOAP messages with signature and client receives responses (or at least it does what it's supposed to do :) )

      But during the execution an exception appears... It seems it doesn't have any consequence, but any idea of why it's happening this?

      I've tried to "googling" a bit for this, but I didn't find anything...

      Thanks ;)

      java.lang.ClassNotFoundException: org/jboss/ws/extensions/security/STRTransform
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:169)
       at org.apache.xml.security.transforms.Transform.register(Unknown Source)
      
       at org.jboss.ws.extensions.security.STRTransform.<clinit>(STRTransform.j
      ava:64)
       at org.jboss.ws.extensions.security.SignatureVerificationOperation.proce
      ss(SignatureVerificationOperation.java:54)
       at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecod
      er.java:123)
       at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecod
      er.java:185)
       at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(W
      SSecurityDispatcher.java:147)
       at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboun
      dSecurity(WSSecurityHandler.java:78)
       at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handle
      Inbound(WSSecurityHandlerClient.java:40)
       at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericH
      andler.java:55)
       at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
      ndlerChainExecutor.java:295)
       at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
      ndlerChainExecutor.java:140)
       at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(Cl
      ientImpl.java:168)
       at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
       at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
      
       at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:16
      4)
       at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:15
      0)
       at $Proxy15.getRate(Unknown Source)
       at org.jbia.ws.Client.main(Client.java:14)
      


        • 1. Re: STRTransform Exception in WS Signing
          Alessio Soldano Master

          I would check that jbossws-client.jar is in your client classpath.

          • 2. Re: STRTransform Exception in WS Signing
            Jesus Rodriguez Newbie

            Hi!

            Ok... I've made it to run the server without this exception adding jbossws-client.jar to the server classpath. I did it so with client but it didn't work.

            I've run it in "debug mode" (let's call it like that) and I've seen this:

            DEBUG [main] (SOAPContentElement.java:136) - -----------------------------------
            
            DEBUG [main] (SOAPContentElement.java:137) - Transitioning from XML_VALID to DOM
            _VALID
            DEBUG [main] (SOAPContentElement.java:143) - -----------------------------------
            
            DEBUG [main] (?:?) - setElement("ds:Signature", "null")
            DEBUG [main] (?:?) - setElement("ds:SignedInfo", "null")
            DEBUG [main] (?:?) - setElement("ds:SignatureMethod", "null")
            DEBUG [main] (?:?) - Create URI "http://www.w3.org/2000/09/xmldsig#rsa-sha1" cla
            ss "class org.apache.xml.security.algorithms.implementations.SignatureBaseRSA$Si
            gnatureRSASHA1"
            DEBUG [main] (?:?) - Request for URI http://www.w3.org/2000/09/xmldsig#rsa-sha1
            DEBUG [main] (?:?) - Created SignatureDSA using SHA1withRSA
            DEBUG [main] (?:?) - setElement("ds:KeyInfo", "null")
            java.lang.ClassNotFoundException: org/jboss/ws/extensions/security/STRTransform
             at java.lang.Class.forName0(Native Method)
             at java.lang.Class.forName(Class.java:169)
             at org.apache.xml.security.transforms.Transform.register(Unknown Source)
            
             at org.jboss.ws.extensions.security.STRTransform.<clinit>(STRTransform.j
            ava:64)
             at org.jboss.ws.extensions.security.SignatureVerificationOperation.proce
            ss(SignatureVerificationOperation.java:54)
             at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecod
            er.java:123)
             at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecod
            er.java:185)
             at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(W
            SSecurityDispatcher.java:147)
             at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboun
            dSecurity(WSSecurityHandler.java:78)
             at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handle
            Inbound(WSSecurityHandlerClient.java:40)
             at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericH
            andler.java:55)
             at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
            ndlerChainExecutor.java:295)
             at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
            ndlerChainExecutor.java:140)
             at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(Cl
            ientImpl.java:168)
             at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
             at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
            
             at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:16
            4)
             at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:15
            0)
             at $Proxy15.getRate(Unknown Source)
             at org.jbia.ws.Client.main(Client.java:14)
            


            but then I see that it does the verification process just perfect...

            DEBUG [main] (SOAPContentElement.java:136) - -----------------------------------
            
            DEBUG [main] (SOAPContentElement.java:137) - Transitioning from XML_VALID to DOM
            _VALID
            DEBUG [main] (SOAPContentElement.java:143) - -----------------------------------
            
             INFO [main] (?:?) - Verification successful for URI "#element-22-1201015964812-
            31518612"
            


            I'll continue searching the reason of this exception, but if you have some clue I'll be very grateful ;)

            Thanks ;)

            P.d: I've never said but... sorry for my english, I try to do it the better I can hehe :)