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)
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
