Thanks, that worked.

On Sat, Jul 2, 2011 at 9:58 PM, Thilina Mahesh Buddhika <thilin...@gmail.com
> wrote:

> It will work if the rampart.mar is available in the class path.
>
> Thanks,
> Thilina
>
>
> On Sat, Jul 2, 2011 at 8:35 AM, Louis Amstutz <loui...@gmail.com> wrote:
>
>> I'm creating a web service using Axis2 which uses Rampart for
>> authentication. In all the samples for Rampart, the client needs to have a
>> client side repository for Axis2. Rampart is started on the client as
>> follows:
>>
>> ConfigurationContext ctx = 
>> ConfigurationContextFactory.createConfigurationContextFromFileSystem("path/to/client/repo",
>>  null);
>> SecureServiceStub stub = new 
>> SecureServiceStub(ctx,"https://localhost:8443/axis2/services/SecureService";);
>> ServiceClient sc = stub._getServiceClient();
>> sc.engageModule("rampart");
>>
>> The method createConfigurationContextFromFileSystem needs a path to an
>> Axis2 repo on the client which has the rampart.mar file. It apparently needs
>> a full absolute path, not a relative path.  However, I'm deploying my client
>> with Java Web Start and I can't put a Axis2 repo on every machine that may
>> need to run the client. It needs to work from any machine from a web browser
>> so everything the client needs to be in the jar. Is there any way I can load
>> the rampart.mar file from the jar of my client app.  Another possibility
>> would be using the
>> ConfigurationContextFactory.createConfigurationContextFromURIs method, but
>> this would require me to create an online repo of axis2+rampart on the
>> server. Anyone know of a good guide for this? I still would prefer to just
>> package everything in the jar.
>>
>
>
>
> --
> Thilina Mahesh Buddhika
> http://blog.thilinamb.com
>

Reply via email to