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 Lorenzo <ce...@gmail.com> on 2007/05/09 17:20:00 UTC

[AXIS2] Module not avaible exception

Hi all,

i have this problem:

1)receive a message context from epr1
2)save and edit it 
3)send to epr2
4)collect epr2's response, save, edit and send it to epr1

now with 1.2 release is easy to save and restore message context, but i
have problems to send them to other epr...

i tried this:

-----------------------------
----------------------------- 

ServiceClient sender = new ServiceClient();

OperationClient opClient =
sender.createClient(ServiceClient.ANON_OUT_IN_OP);

MessageContext outMsgCtx = new MessageContext();

Options opts = outMsgCtx.getOptions();

opts.setTo(new EndpointReference(epr2));

opts.setTransportInProtocol(Constants.TRANSPORT_HTTP);

opClient.addMessageContext(outMsgCtx);

opClient.execute(true);

---------------------------------
---------------------------------

but i get this error:

org.apache.axis2.deployment.DeploymentException: The system is
attempting to engage a module that is not available: addressing
        at
org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:156)
        at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
        at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
        at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:174)
        at
org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:211)
        at
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:138)
        at
org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:133)
        at
org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:229)
        at
org.openspcoop.OpenSPCoopMessage.fire(OpenSPCoopMessage.java:118)
        at
org.openspcoop.OpenSPCoopMessageReceiver.receive(OpenSPCoopMessageReceiver.java:47)
        at
org.openspcoop.OpenSPCoopDispatcher.findOperation(OpenSPCoopDispatcher.java:66)
        at
org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:100)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
        at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
        at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
        at
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:216)
        at
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:275)
        at
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:184)
        at
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:74)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.AxisFault: The system is attempting to
engage a module that is not available: addressing
        at
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:396)
        at
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:614)
        at
org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:152)
        ... 22 more


addressing module is present... 

any suggestion?



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


Re: [AXIS2] Module not avaible exception

Posted by Amila Suriarachchi <am...@gmail.com>.
try to create the service client like this

ConfigurationContext configurationContext =

ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_REPOSITORY,
AXIS2_CONF);
        ServiceClient sender = new ServiceClient(configurationContext,
null);

By giving a valid axis2.xml file and a repository

On 5/9/07, Lorenzo <ce...@gmail.com> wrote:
>
> Hi all,
>
> i have this problem:
>
> 1)receive a message context from epr1
> 2)save and edit it
> 3)send to epr2
> 4)collect epr2's response, save, edit and send it to epr1
>
> now with 1.2 release is easy to save and restore message context, but i
> have problems to send them to other epr...
>
> i tried this:
>
> -----------------------------
> -----------------------------
>
> ServiceClient sender = new ServiceClient();
>
> OperationClient opClient =
> sender.createClient(ServiceClient.ANON_OUT_IN_OP);
>
> MessageContext outMsgCtx = new MessageContext();
>
> Options opts = outMsgCtx.getOptions();
>
> opts.setTo(new EndpointReference(epr2));
>
> opts.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
> opClient.addMessageContext(outMsgCtx);
>
> opClient.execute(true);
>
> ---------------------------------
> ---------------------------------
>
> but i get this error:
>
> org.apache.axis2.deployment.DeploymentException: The system is
> attempting to engage a module that is not available: addressing
>         at
> org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(
> DeploymentEngine.java:156)
>         at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
> FileSystemConfigurator.java:116)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:60)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (ConfigurationContextFactory.java:174)
>         at
> org.apache.axis2.client.ServiceClient.initializeTransports(
> ServiceClient.java:211)
>         at
> org.apache.axis2.client.ServiceClient.configureServiceClient(
> ServiceClient.java:138)
>         at
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:133)
>         at
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:229)
>         at
> org.openspcoop.OpenSPCoopMessage.fire(OpenSPCoopMessage.java:118)
>         at
> org.openspcoop.OpenSPCoopMessageReceiver.receive(
> OpenSPCoopMessageReceiver.java:47)
>         at
> org.openspcoop.OpenSPCoopDispatcher.findOperation(
> OpenSPCoopDispatcher.java:66)
>         at
> org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java
> :100)
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
>         at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
>         at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:279)
>         at
> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:216)
>         at
> org.apache.axis2.transport.http.server.AxisHttpService.doService(
> AxisHttpService.java:275)
>         at
> org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
> AxisHttpService.java:184)
>         at
> org.apache.axis2.transport.http.server.HttpServiceProcessor.run(
> HttpServiceProcessor.java:74)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:665)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:690)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault: The system is attempting to
> engage a module that is not available: addressing
>         at
> org.apache.axis2.engine.AxisConfiguration.engageModule(
> AxisConfiguration.java:396)
>         at
> org.apache.axis2.deployment.DeploymentEngine.engageModules(
> DeploymentEngine.java:614)
>         at
> org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(
> DeploymentEngine.java:152)
>         ... 22 more
>
>
> addressing module is present...
>
> any suggestion?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.