You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "kranthi (JIRA)" <ji...@apache.org> on 2012/11/26 13:24:57 UTC

[jira] [Created] (RAMPART-398) Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"

kranthi created RAMPART-398:
-------------------------------

             Summary: Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"
                 Key: RAMPART-398
                 URL: https://issues.apache.org/jira/browse/RAMPART-398
             Project: Rampart
          Issue Type: Bug
          Components: rampart-policy
    Affects Versions: 1.6.2
         Environment: Apache Tomcat/5.5.36, Windows XP, rampart-1.6.2, axis2-1.6.2
            Reporter: kranthi
             Fix For: 1.6.2


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


RE: [jira] [Created] (RAMPART-398) Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"

Posted by Brian Reinhold <br...@lampreynetworks.com>.
Just something silly, but why are you sending secure messages over an unsecure port? I would have expected to see an https://localhost:8443/axis2/services/STS and hopefully Tomcat configuration xml is properly set up for secure messages. Also, I am assuming you are using the Example05 in the policy directory, not the Basic directory. I have not tried any of the examples yet but they do appear seriously out of date. There is a read-me note about openSAML. I have successfully run the Rahas default STS service using the current version of openSAML. I have only this jar in my /lib directory of the axis2 deployment in Tomcat (opensaml-2.5.3.jar). 

In any case are you properly configured to send secure messages?

Brian

-----Original Message-----
From: kranthi (JIRA) [mailto:jira@apache.org] 
Sent: Monday, November 26, 2012 7:25 AM
To: java-dev@axis.apache.org
Subject: [jira] [Created] (RAMPART-398) Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"

kranthi created RAMPART-398:
-------------------------------

             Summary: Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"
                 Key: RAMPART-398
                 URL: https://issues.apache.org/jira/browse/RAMPART-398
             Project: Rampart
          Issue Type: Bug
          Components: rampart-policy
    Affects Versions: 1.6.2
         Environment: Apache Tomcat/5.5.36, Windows XP, rampart-1.6.2, axis2-1.6.2
            Reporter: kranthi
             Fix For: 1.6.2


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2793 / Virus Database: 2629/5919 - Release Date: 11/25/12

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2793 / Virus Database: 2629/5919 - Release Date: 11/25/12


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (RAMPART-398) Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"

Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  updated RAMPART-398:
---------------------------------------

    Fix Version/s:     (was: 1.6.2)
                   1.6.3
    
> Not able to run Rampart Sample 05 Example -- Getting error "org.apache.axis2.AxisFault: The signature or decryption was invalid"
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-398
>                 URL: https://issues.apache.org/jira/browse/RAMPART-398
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.6.2
>         Environment: Apache Tomcat/5.5.36, Windows XP, rampart-1.6.2, axis2-1.6.2
>            Reporter: kranthi
>             Fix For: 1.6.3
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org