Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-398

Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.6.2
    • 1.6.4, 1.7.0
    • rampart-policy
    • None
    • Apache Tomcat/5.5.36, Windows XP, rampart-1.6.2, axis2-1.6.2

    Description

      I have configured rampart-1.6.2 policy samples. I have configured everything perfectly.
      Iam able to run tomcat (deployed axis2.war)
      Iam able to start $ant service.05
      When Iam trying to run $ant client.05 ...Iam getting the error "org.apache.axis2.AxisFault: The signature or decryption was invalid"

      And Below is detailed error description:

      D:\POC\POC-WS Trust\rampart-1.6.2\samples\policy>ant client.05
      Buildfile: D:\POC\POC-WS Trust\rampart-1.6.2\samples\policy\build.xml

      check.dependency:

      client.05:
      [javac] D:\POC\POC-WS Trust\rampart-1.6.2\samples\policy\build.xml:263: warning: 'includeantruntime' was not set, defaulting to build.sys
      classpath=last; set to false for repeatable builds
      [copy] Copying 1 file to D:\POC\POC-WS Trust\rampart-1.6.2\samples\policy\build\temp_client
      [copy] Copying 1 file to D:\POC\POC-WS Trust\rampart-1.6.2\samples\policy\build\temp_client
      [java] [INFO] No services directory was found under D:\POC\POC-WS Trust\rampart-1.6.2\samples\policy\build\client_repositories\sample05.

      [java] [INFO] Deploying module: addressing-1.6.2 - file:/D:/POC/POC-WS Trust/rampart-1.6.2/samples/policy/build/client_repositories/samp
      le05/modules/addressing-1.6.2.mar
      [java] [INFO] Deploying module: rahas-1.6.2 - file:/D:/POC/POC-WS Trust/rampart-1.6.2/samples/policy/build/client_repositories/sample05/
      modules/rahas-1.6.2.mar
      [java] [INFO] Deploying module: rampart-1.6.2 - file:/D:/POC/POC-WS Trust/rampart-1.6.2/samples/policy/build/client_repositories/sample0
      5/modules/rampart-1.6.2.mar
      [java] [ERROR] errorInObtainingToken
      [java] org.apache.axis2.AxisFault: The signature or decryption was invalid
      [java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
      [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
      [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
      [java] at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java:154)
      [java] at org.apache.rampart.samples.policy.sample05.Client.main(Unknown Source)
      [java] Exception in thread "main" org.apache.rahas.TrustException: Error in obtaining token from : "http://localhost:8080/axis2/services
      /STS"
      [java] at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java:163)
      [java] at org.apache.rampart.samples.policy.sample05.Client.main(Unknown Source)
      [java] Caused by: org.apache.axis2.AxisFault: The signature or decryption was invalid
      [java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
      [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
      [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
      [java] at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java:154)
      [java] ... 1 more

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kranthimorthala kranthi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: