[ 
https://issues.apache.org/jira/browse/RAMPART-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787397#comment-13787397
 ] 

Suresh Attanayake commented on RAMPART-381:
-------------------------------------------

Hi Sagara,

The sample failed because there is an extra step you should follow before 
running the samples. This is not properly documented in the site and the Jira 
ticket RAMPART-405 is to fix the documentation. 

You should first go to the rampart-1.7.0-SNAPSHOT/samples/ folder and run the 
ant script over there. This will copy the required rampart libs and mars to 
$AXIS2_HOME. Just run the command 'ant' from there[1]. After that only you 
should run the samples. 

[1] - http://axis.apache.org/axis2/java/rampart/quick-start.html

  

> Rampart Sample 05 is not working
> --------------------------------
>
>                 Key: RAMPART-381
>                 URL: https://issues.apache.org/jira/browse/RAMPART-381
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-trust
>    Affects Versions: 1.6.2
>            Reporter: Suresh Attanayake
>             Fix For: 1.6.3
>
>         Attachments: RAMPART-381.patch
>
>
> Sample 05 client side throws the following exception,
>   [java] Exception in thread "main" org.apache.axis2.AxisFault: Error in 
> retrieving token : 
>      [java]   at 
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:76)
>      [java]   at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>      [java]   at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>      [java]   at 
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
>      [java]   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:427)
>      [java]   at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
>      [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.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
>      [java]   at 
> org.apache.rampart.samples.policy.sample05.Client.main(Unknown Source)
>      [java] Caused by: org.apache.rampart.RampartException: Error in 
> retrieving token : 
>      [java]   at 
> org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:375)
>      [java]   at 
> org.apache.rampart.builder.SymmetricBindingBuilder.doSignBeforeEncrypt(SymmetricBindingBuilder.java:487)
>      [java]   at 
> org.apache.rampart.builder.SymmetricBindingBuilder.build(SymmetricBindingBuilder.java:82)
>      [java]   at 
> org.apache.rampart.MessageBuilder.build(MessageBuilder.java:144)
>      [java]   at 
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
>      [java]   ... 10 more
>      [java] Java Result: 1



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to