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 sridhar vudutha <sr...@gmail.com> on 2006/11/07 19:56:42 UTC

org.apache.axis2.AxisFault: Module not found(Help Please)

Hello,
    I have seen some posts on this Exception. Tried doing the same but still
getting the exception. Any help would be greatly appreciated.

This is what I have.

Exception:

org.apache.axis2.AxisFault: Module not found

at org.apache.axis2.description.AxisService.engageModule(
*AxisService.java:478*)

at org.apache.axis2.client.ServiceClient.engageModule(
*ServiceClient.java:294*)

at com.cp.labs.EChainTestStatusServiceStub.<init>(
*EChainTestStatusServiceStub.java:118*)

at com.cp.labs.EChainTestStatusServiceStub.<init>(
*EChainTestStatusServiceStub.java:104*)

at MedToxLocalClientTest.main(
*MedToxLocalClientTest.java:24*)

Added rampart snapshot in the classpath .(modified the extension of the
rampart module to "zip" in order to add it
to the classpath in Eclipse)
C:\axis2-1.1-SNAPSHOT\lib\rampart-1.1-SNAPSHOT.zip

I have the mar file in the modules directory.
C:\axis2-1.1-SNAPSHOT\modules\rampart-1.1-SNAPSHOT.mar

Also I have it here.
C:\axis2-1.1-SNAPSHOT\repository\modules\rampart-1.1-SNAPSHOT.mar


code from the generated Generated Stub
*

public
*EChainTestStatusServiceStub(java.lang.String targetEndpoint) *throws*
org.apache.axis2.AxisFault {

//this(null,targetEndpoint);

*this*(org.apache.axis2.context.ConfigurationContextFactory.*
createConfigurationContextFromFileSystem*("* C:\\axis2-1.1-SNAPSHOT"*,
"C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml"), targetEndpoint);

_serviceClient.getOptions().setSoapVersionURI( SOAP11Constants.*
SOAP_ENVELOPE_NAMESPACE_URI* );

_serviceClient.engageModule( *new* QName( "rampart") );

}

Also tried engaging the module in "axis2.xml" under C:\\axis2-
1.1-SNAPSHOT\\conf\\axis2.xml

<module ref="rampart" />

Also tried putting the module "rampart-1.1-SNAPSHOT.mar" under the modules
directory in my project.

C:\eclipse\workspace\myproject\modules\rampart-1.1-SNAPSHOT.mar



Thanks,

Sridhar.

Re: org.apache.axis2.AxisFault: Module not found(Help Please)

Posted by sridhar vudutha <sr...@gmail.com>.
Hi Ruchith,
       Thanks for the response. I tried using "C:\axis2-
1.1-SNAPSHOT\repository\", still the same error. I have few questions to
ask.

To implement security, do we have to engage both "addressing" and "rampart"
in axis2.xml or just "rampart" is sufficient?. If so, wat's the naming
convention. I mean here we say <module ref="rampart"> but the ".mar" file is
"rampart-1.1-SNAPSHOT.mar". Does the names have to be alike. (I did put the
same names and tried, still no use).

/*** from axis2.xml *****/
<module ref="addressing"/>
<module ref="rampart"/>

after the, Does the client check if the ".mar" files in the classpath?  I
did change the extensions to ".zip" and added to the classpath, still no
use.

I'm out of ideas of how to get rid of this problem. Please let me know all
the things that I can do to solve this problem.

The following is my client code. I have also attached the generated files.

*

public* *static* *void* main(String[] args) {

// *TODO* Auto-generated method stub

System.*out*.println( "Calling webservice" );

*try  *{

           String targetEndPoint =  "
https://test.medtox.com/eChainTestOrderWebService/eChainTestOrderService.asmx
";

          ConfigurationContext ctx =  ConfigurationContextFactory.*
createConfigurationContextFromFileSystem*("C:\\axis2-
1.1-SNAPSHOT\\repository", "C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml");

            EChainTestOrderServiceStub echainStub =
*new*EChainTestOrderServiceStub(ctx,targetEndPoint);

           InsertOrder io = *new* InsertOrder();

           EChainOrderRequest eor = *new* EChainOrderRequest();

          eor.setAccountNumber(112234);

          eor.setCustomerAccountReference("");

         io.setOrderRequest(eor);

          InsertOrderResponse ior = echainStub.InsertOrder(io);

         System.*out*.println( "Order Number =" +
ior.getInsertOrderResult().getOrderNumber() );

 }*catch*( Exception e )

{

e.printStackTrace();

}



On 11/7/06, Ruchith Fernando <ru...@gmail.com> wrote:
>
> Hi,
>
> Please try using "C:\axis2-1.1-SNAPSHOT\repository\" as the repo
> location. Also I noticed that you have changed the generated stub.
> There should be another generated constructor where you can provide
> the config context. Please use that without changing the stub.
>
> Thanks,
> Ruchith
>
> On 11/8/06, sridhar vudutha <sr...@gmail.com> wrote:
> > Hello,
> >     I have seen some posts on this Exception. Tried doing the same but
> still
> > getting the exception. Any help would be greatly appreciated.
> >
> > This is what I have.
> >
> > Exception:
> >
> >
> > org.apache.axis2.AxisFault: Module not found
> >
> > at
> > org.apache.axis2.description.AxisService.engageModule(AxisService.java
> :478)
> >
> > at
> > org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java
> :294)
> >
> > at
> > com.cp.labs.EChainTestStatusServiceStub.<init>(
> EChainTestStatusServiceStub.java:118)
> >
> > at
> > com.cp.labs.EChainTestStatusServiceStub.<init>(
> EChainTestStatusServiceStub.java:104)
> >
> > at MedToxLocalClientTest.main(MedToxLocalClientTest.java:24)
> >
> > Added rampart snapshot in the classpath .(modified the extension of the
> > rampart module to "zip" in order to add it
> > to the classpath in Eclipse)
> > C:\axis2-1.1-SNAPSHOT\lib\rampart-1.1-SNAPSHOT.zip
> >
> > I have the mar file in the modules directory.
> > C:\axis2-1.1-SNAPSHOT\modules\rampart-1.1-SNAPSHOT.mar
> >
> > Also I have it here.
> > C:\axis2-1.1-SNAPSHOT\repository\modules\rampart-1.1-SNAPSHOT.mar
> >
> >
> > code from the generated Generated Stub
> >
> >
> > publicEChainTestStatusServiceStub(java.lang.String targetEndpoint)
> throws
> > org.apache.axis2.AxisFault {
> >
> > //this(null,targetEndpoint);
> >
> > this(
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> ("
> > C:\\axis2-1.1-SNAPSHOT","C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml"),
> > targetEndpoint);
> >
> >
> >
> > _serviceClient.getOptions().setSoapVersionURI(
> > SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI );
> >
> > _serviceClient.engageModule( new QName( "rampart" ) );
> >
> > }
> >
> > Also tried engaging the module in "axis2.xml" under
> > C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml
> >
> > <module ref="rampart" />
> >
> > Also tried putting the module "rampart-1.1-SNAPSHOT.mar" under the
> modules
> > directory in my project.
> >
> > C:\eclipse\workspace\myproject\modules\rampart-1.1-SNAPSHOT.mar
> >
> >
> >
> > Thanks,
> >
> > Sridhar.
>
>
> --
> 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: org.apache.axis2.AxisFault: Module not found(Help Please)

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

Please try using "C:\axis2-1.1-SNAPSHOT\repository\" as the repo
location. Also I noticed that you have changed the generated stub.
There should be another generated constructor where you can provide
the config context. Please use that without changing the stub.

Thanks,
Ruchith

On 11/8/06, sridhar vudutha <sr...@gmail.com> wrote:
> Hello,
>     I have seen some posts on this Exception. Tried doing the same but still
> getting the exception. Any help would be greatly appreciated.
>
> This is what I have.
>
> Exception:
>
>
> org.apache.axis2.AxisFault: Module not found
>
> at
> org.apache.axis2.description.AxisService.engageModule(AxisService.java:478)
>
> at
> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:294)
>
> at
> com.cp.labs.EChainTestStatusServiceStub.<init>(EChainTestStatusServiceStub.java:118)
>
> at
> com.cp.labs.EChainTestStatusServiceStub.<init>(EChainTestStatusServiceStub.java:104)
>
> at MedToxLocalClientTest.main(MedToxLocalClientTest.java:24)
>
> Added rampart snapshot in the classpath .(modified the extension of the
> rampart module to "zip" in order to add it
> to the classpath in Eclipse)
> C:\axis2-1.1-SNAPSHOT\lib\rampart-1.1-SNAPSHOT.zip
>
> I have the mar file in the modules directory.
> C:\axis2-1.1-SNAPSHOT\modules\rampart-1.1-SNAPSHOT.mar
>
> Also I have it here.
> C:\axis2-1.1-SNAPSHOT\repository\modules\rampart-1.1-SNAPSHOT.mar
>
>
> code from the generated Generated Stub
>
>
> publicEChainTestStatusServiceStub(java.lang.String targetEndpoint) throws
> org.apache.axis2.AxisFault {
>
> //this(null,targetEndpoint);
>
> this(org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem("
> C:\\axis2-1.1-SNAPSHOT","C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml"),
> targetEndpoint);
>
>
>
> _serviceClient.getOptions().setSoapVersionURI(
> SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI );
>
> _serviceClient.engageModule( new QName( "rampart" ) );
>
> }
>
> Also tried engaging the module in "axis2.xml" under
> C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml
>
> <module ref="rampart" />
>
> Also tried putting the module "rampart-1.1-SNAPSHOT.mar" under the modules
> directory in my project.
>
> C:\eclipse\workspace\myproject\modules\rampart-1.1-SNAPSHOT.mar
>
>
>
> Thanks,
>
> Sridhar.


-- 
www.ruchith.org

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