Hi Ruchith and All, I figured out what wrong I did. I was trying to run samples in the source (directly checked out from the SVN), but what I should have done is running samples in the binary distribution. The second thing I did wrong was using using Axis2-1.6.0 instead of Axis2-1.6.2-SNAPSHOT [This lead to some exceptions due to version differences of Neethi]. Thank you AmilaJ for helping me out.
Thanks, Suresh On Tue, Feb 14, 2012 at 3:05 AM, Ruchith Fernando < ruchith.ferna...@gmail.com> wrote: > Hi Suresh, > > Seems like you are missing the wss4j jar due to some reason. > You can try starting with a fresh instances of axis2 and rampart > distros and try. > > Thanks, > Ruchith > > On Sun, Feb 12, 2012 at 12:11 PM, suresh attanayake > <suresh.attanay...@gmail.com> wrote: > > Hi Devs, > > > > When I try to run Rampart samples I get the following error. I tried with > > both 1_6 branch and trunk. I use Ant version 1.8.2 in Ubuntu 11.10 with > Open > > JDK 1.6.0_23. I have no idea of why this is happening and looking forward > > for your assistance. > > > > sga@bismark > :~/svn-local/apache/rampart/1_6/modules/rampart-samples/policy$ > > ant service.01 > > Buildfile: > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/build.xml > > > > check.dependency: > > > > service.01: > > [javac] > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/build.xml:157: > > warning: 'includeantruntime' was not set, defaulting to > > build.sysclasspath=last; set to false for repeatable builds > > [javac] Compiling 2 source files to > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/build/temp > > [javac] > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/sample01/src/org/apache/rampart/samples/policy/sample01/PWCBHandler.java:19: > > package org.apache.ws.security does not exist > > [javac] import org.apache.ws.security.WSPasswordCallback; > > [javac] ^ > > [javac] > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/sample01/src/org/apache/rampart/samples/policy/sample01/PWCBHandler.java:34: > > cannot find symbol > > [javac] symbol : class WSPasswordCallback > > [javac] location: class > > org.apache.rampart.samples.policy.sample01.PWCBHandler > > [javac] WSPasswordCallback pwcb = > > (WSPasswordCallback)callbacks[i]; > > [javac] ^ > > [javac] > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/sample01/src/org/apache/rampart/samples/policy/sample01/PWCBHandler.java:34: > > cannot find symbol > > [javac] symbol : class WSPasswordCallback > > [javac] location: class > > org.apache.rampart.samples.policy.sample01.PWCBHandler > > [javac] WSPasswordCallback pwcb = > > (WSPasswordCallback)callbacks[i]; > > [javac] ^ > > [javac] > > > /home/sga/svn-local/apache/rampart/1_6/modules/rampart-samples/policy/sample01/src/org/apache/rampart/samples/policy/sample01/PWCBHandler.java:35: > > cannot find symbol > > [javac] symbol : variable WSPasswordCallback > > [javac] location: class > > org.apache.rampart.samples.policy.sample01.PWCBHandler > > [javac] if (pwcb.getUsage() == > > WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) { > > [javac] ^ > > [javac] 4 errors > > > > > > -- > > > > Thanks, > > Suresh Attanayake > > > > Blog : http://sureshatt.blogspot.com/ > > LinkedIn : http://www.linkedin.com/pub/suresh-attanayake/16/165/181 > > Twitter : http://twitter.com/sureshatt > > > > > > -- > http://ruchith.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org > For additional commands, e-mail: java-dev-h...@axis.apache.org > > -- Suresh Attanayake Blog : http://sureshatt.blogspot.com/ LinkedIn : http://www.linkedin.com/pub/suresh-attanayake/16/165/181 Twitter : http://twitter.com/sureshatt