axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafaqat Ali" <smok...@gmail.com>
Subject Re: Getting Exception Unable to engage module : rampart
Date Thu, 19 Jun 2008 12:40:42 GMT
And in
System.setProperty("javax.net.ssl.trustStore", "/path/to/server.jks");
/path/to/server.jks was replaced with original file

On Thu, Jun 19, 2008 at 6:36 PM, Rafaqat Ali <smoken0@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
>
>
>
> On Thu, Jun 19, 2008 at 6:27 PM, Nandana Mihindukulasooriya <
> nandana.cse@gmail.com> wrote:
>
>> Can you provide some more information about how you configured Rampart in
>> client side ? Some code from the client will do.
>>
>> thanks,
>> nandana
>>
>>
>> On Thu, Jun 19, 2008 at 5:54 PM, Rafaqat Ali <smoken0@gmail.com> wrote:
>>
>>> Hi,
>>> I am trying to run Java client for a test service containing rampart as
>>> security module. I have added rampart on server side .
>>> When I try to run client I get this Exception
>>>
>>> Exception in thread "main" org.apache.axis2.AxisFault: Unable to engage
>>> module : rampart
>>>         at
>>> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:357)
>>>         at pk.ingen.wstest.client.GreetingServiceCGClient.main(Unknown
>>> Source)
>>>
>>> Can any one solve this proble?
>>>
>>> Thanks,
>>> --RAFI
>>>
>>
>

Mime
View raw message