Hi I know this is a very old post but I am having the same problem, Where do you place the mar files on the client side? I use eclipse IDE
Rafaqat Ali wrote: > > Hi, > I have place modules/rampart-1.3.mar and problem solved. > Thank You Nandana. > > --RAFI > > On Thu, Jun 19, 2008 at 7:06 PM, Nandana Mihindukulasooriya < > nandana....@gmail.com> wrote: > >> Just to make sure , you have deployed the rampart mar to the client >> repository under modules directory and have all the rampart and third >> party >> dependency classes in your client classpath ? >> >> And "/home/rafi/programming/java/webservice/wstest-client" points to the >> correct location right ? Where you have >> /home/rafi/programming/java/webservice/wstest-client/modules/rampart-1.3.mar >> . >> >> thanks, >> nandana >> >> On Thu, Jun 19, 2008 at 6:06 PM, Rafaqat Ali <smok...@gmail.com> wrote: >> >>> Hi, >>> I am new to web services and following tutorial for addign rampart as >>> security module from a website >>> http://wso2.org/library/3190 >>> >>> Here is my client side code >>> ConfigurationContext ctx = >>> ConfigurationContextFactory.createConfigurationContextFromFileSystem("/home/rafi/programming/java/webservice/wstest-client", >>> null); >>> GreetingServiceStub stub = new GreetingServiceStub(ctx, " >>> https://localhost:8443/axis2/services/GreetingService"); >>> ServiceClient sc = stub._getServiceClient(); >>> sc.engageModule("rampart"); >>> >>> Options options = sc.getOptions(); >>> options.setUserName("apache"); >>> options.setPassword("password"); >>> >>> System.setProperty("javax.net.ssl.trustStore", >>> "/path/to/server.jks"); >>> System.setProperty("javax.net.ssl.trustStorePassword", >>> "password"); >>> >>> String greeting = stub.greeting(); >>> >>> >>> --RAFI >>> >> >> >> >> -- >> Nandana Mihindukulasooriya >> Software Engineer >> WSO2 inc. >> >> http://nandana83.blogspot.com/ >> > > -- View this message in context: http://old.nabble.com/Getting-Exception-Unable-to-engage-module-%3A-rampart-tp18007837p34300413.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org