Thanks. That worked.

-----Original Message-----
From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 04, 2006 10:23 AM
To: [email protected]
Subject: Re: [Axis2] Problem engaging Rampart.

Hi,

I extracted the following from your original email:

       ConfigurationContext ctx=
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:
\\vikas\\eCams",
"C:\\client_axis2.xml");

Please make sure you have rampart-SNAPSHOT.mar in
C:\\vikas\\eCams\\modules directory, since according to the above your
client side repo is "C:\\vikas\\eCams" directory.

Thanks,
Ruchith

On 9/4/06, Charak, Vikas <[EMAIL PROTECTED]> wrote:
>
>
>
> Yes I do have that and JBoss deploys it also.
> I guess I am still trying to understand how deploying this module in
Jboss
> would help my client . The server will come in to picture only when it
will
> receive the call.
> Here is what I am trying to do lets say there is a service some where
which
> requires the caller to pass User Token. So lets say your client is a
jUnit .
> Now using Axis2 how can you write a code which can create user token
and
> send the message to a service.
>
> Thanks for being helpful.
>
>
>
>  ________________________________
>  From: Ionut Constandache [mailto:[EMAIL PROTECTED]
> Sent: Sun 9/3/2006 8:14 PM
> To: [email protected]
> Subject: Re: [Axis2] Problem engaging Rampart.
>
>
>
> Hi,
>
> Make sure that you have rampart-1.0.mar into axis2/WEB-INF/modules/
>
>
>
>
> On 9/3/06, Charak, Vikas < [EMAIL PROTECTED]> wrote:
> > Hi ,
> >
> > I am writing a simple JUnit client which will create userToken using
> Rampart and set in SOAP call. Service  deployed on Jboss and Axis2,
will
> extract these values and verify the the caller.
> >
> > Here is the code snippet from JUnit cleint
> >
> >         ConfigurationContext ctx=
>
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:
\\vikas\\eCams",
> "C:\\client_axis2.xml");
> >        ServiceClient l_serviceClient = new ServiceClient(ctx, null);
> >
> >
> > I am using the file client_axis2.xml , which came with Rucitha
Rampart
> Sample11 (client.axis2.xml).
> >
> > I have included all the jar files which came with the samples.
> >
> > I am getting the follwoing error
> >
> > org.apache.axis2.AxisFault: Trying to engage a module which is not
> available : rampart
> > at
>
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration
.java:346)
> > at
>
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng
ine.java:641)
> > at
>
org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F
ileSystemConfigurator.java:124)
> > at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context
> (ConfigurationContextFactory.java:71)
> > at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:170)
> > at
> com.ecams.webservice.callers.TestClientWebService.getServiceClient
> (TestClientWebService.java:85)
> > at
>
com.ecams.webservice.callers.TestClientWebService.testMemberGetItemServi
ce(TestClientWebService.java:56)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown
> Source)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at junit.framework.TestCase.runTest(TestCase.java:154)
> > at junit.framework.TestCase.runBare (TestCase.java:127)
> > at
> junit.framework.TestResult$1.protect(TestResult.java:106)
> > at
> junit.framework.TestResult.runProtected(TestResult.java:124)
> > at junit.framework.TestResult.run(TestResult.java:109)
> > at junit.framework.TestCase.run (TestCase.java:118)
> > at junit.framework.TestSuite.runTest(TestSuite.java:208)
> > at junit.framework.TestSuite.run(TestSuite.java:203)
> > at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java
> :478)
> > at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:344)
> > at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to