axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RAMPART-381) Rampart Sample 05 is not working
Date Tue, 01 Oct 2013 04:57:26 GMT

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

Sagara Gunathunga  commented on RAMPART-381:
--------------------------------------------

I have build Rampart trunk with your fix and tested sample05 but I'm getting following issue.


service.05:
    [mkdir] Created dir: /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/service_repositories/sample05
    [mkdir] Created dir: /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/service_repositories/sample05/services
    [mkdir] Created dir: /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/service_repositories/sample05/modules
     [copy] Copying 1 file to /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/service_repositories/sample05/modules
    [mkdir] Created dir: /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/temp
    [mkdir] Created dir: /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/temp/META-INF
    [javac] /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build.xml:164:
warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
for repeatable builds
    [javac] Compiling 2 source files to /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/build/temp
    [javac] /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/sample05/src/org/apache/rampart/samples/policy/sample05/PWCBHandler.java:19:
package org.apache.ws.security does not exist
    [javac] import org.apache.ws.security.WSPasswordCallback;
    [javac]                              ^
    [javac] /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/sample05/src/org/apache/rampart/samples/policy/sample05/PWCBHandler.java:32:
cannot find symbol
    [javac] symbol  : class WSPasswordCallback
    [javac] location: class org.apache.rampart.samples.policy.sample05.PWCBHandler
    [javac]             WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
    [javac]             ^
    [javac] /home/sagara/dev/code/apache/rampart/trunk/modules/distribution/target/rampart-1.7.0-SNAPSHOT/samples/policy/sample05/src/org/apache/rampart/samples/policy/sample05/PWCBHandler.java:32:
cannot find symbol
    [javac] symbol  : class WSPasswordCallback
    [javac] location: class org.apache.rampart.samples.policy.sample05.PWCBHandler
    [javac]             WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
    [javac]                                        ^
    [javac] 3 errors

Please note that this is occurring without your fix too and I have used Axis2 trunk for testing.
Can you take a look again ?  

> 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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message