You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ionut Constandache <io...@gmail.com> on 2006/09/04 02:14:09 UTC

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 <vi...@cns-inc.com> 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(
> DeploymentEngine.java:641)
> at org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(
> FileSystemConfigurator.java:124)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:71)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (ConfigurationContextFactory.java:170)
> at com.ecams.webservice.callers.TestClientWebService.getServiceClient(
> TestClientWebService.java:85)
> at
> com.ecams.webservice.callers.TestClientWebService.testMemberGetItemService
> (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(
> RemoteTestRunner.java:478)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:344)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:196)
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2] Problem engaging Rampart.

Posted by Ruchith Fernando <ru...@gmail.com>.
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 <vi...@cns-inc.com> 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:ionutc@gmail.com]
> Sent: Sun 9/3/2006 8:14 PM
> To: axis-user@ws.apache.org
> 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 < vikas.charak@cns-inc.com> 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(DeploymentEngine.java:641)
> > at
> org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(FileSystemConfigurator.java:124)
> > at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:71)
> > at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:170)
> > at
> com.ecams.webservice.callers.TestClientWebService.getServiceClient
> (TestClientWebService.java:85)
> > at
> com.ecams.webservice.callers.TestClientWebService.testMemberGetItemService(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(RemoteTestRunner.java
> :478)
> > at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> > at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: [Axis2] Problem engaging Rampart.

Posted by "Charak, Vikas" <vi...@cns-inc.com>.
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:ionutc@gmail.com]
Sent: Sun 9/3/2006 8:14 PM
To: axis-user@ws.apache.org
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 < vikas.charak@cns-inc.com <ma...@cns-inc.com> > 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(DeploymentEngine.java:641)
	at org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(FileSystemConfigurator.java:124)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java:71)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:170)
	at com.ecams.webservice.callers.TestClientWebService.getServiceClient (TestClientWebService.java:85)
	at com.ecams.webservice.callers.TestClientWebService.testMemberGetItemService(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(RemoteTestRunner.java :478)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
	
	
	
	
	
	
	
	
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
	For additional commands, e-mail: axis-user-help@ws.apache.org