Hi Yariel; In the current implementation its fixed . To solve your porblem you have to download addressing.mar and drop that into .axis2/modules directory.
Yariel Ramos Moreno wrote: > Hi: > > I'm working with Axis2 since a few months ago. I'm making an > application that consists of 2 Web Services (both WS have the same > implementations, but with some diferent configuration parameters and > names). The first of them receive a request from a client, it > processes the information and then invoke the second WS sending to it > the results of that process. The second WS most process the > information sent by the first one. All the methods invoked are oneway > methods (FireAndForgot kind). > > The first call work fine, but when from the 1st WS I create an > instance of a client to invoke the 2nd WS, I receive the following > exception: > > /Module validation failed module.xml not found for the module : > addressing; nested exception is: > org.apache.axis2.deployment.DeploymentException: module.xml not > found for the module : addressing > org.apache.axis2.deployment.DeploymentException: module.xml not found > for the module : addressing; nested exception is: > org.apache.axis2.deployment.DeploymentException: module.xml not > found for the module : addressing; nested exception is: > org.apache.axis2.deployment.DeploymentException: module.xml not > found for the module : addressing; nested exception is: > org.apache.axis2.deployment.DeploymentException: module.xml not > found for the module : addressing > at > org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:542) > at > org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:39) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53) > at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:86) > at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:148) > at newsProviderService.client.Client.invokeService(Client.java:25) > at > newsProviderService.service.ServiceProcessor.processRequest(ServiceProcessor.java:63) > at newsProviderService.service.NewsService.request(NewsService.java:37) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(RawXMLINOnlyMessageReceiver.java:106) > at > org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:331) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:274) > at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.apache.axis2.deployment.DeploymentException: module.xml > not found for the module : addressing; nested exception is: > org.apache.axis2.deployment.DeploymentException: module.xml not > found for the module : addressing > at > org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:193) > at > org.apache.axis2.engine.AxisConfiguration.loadModulefromResources(AxisConfiguration.java:385) > at > org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:328) > at > org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:502) > at > org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:537) > ... 33 more > Caused by: org.apache.axis2.deployment.DeploymentException: module.xml > not found for the module : addressing > at > org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:158) > ... 37 more > - Invalid service newsService due to Two services can not have same > name, a service with newsService already exists in the system > - Invalid service newsService2 due to Two services can not have same > name, a service with newsService2 already exists in the system/ > > I have follow the instructions concerning to the .axis2 directory > and the addressing.mar archive in my home dierectory and the error > continues. Also I have made some tests deploying the WSs in diferent > machines and in the same one, but the result is always de same. > > I don't have any idea of how to resolve this problem. Would be because > I'm invoking a second WS in the same server from another WS? > > The code where I'm creating de client is, the error is in line 26: > > 1. package newsProviderService.client; > 2. > 3. import org.apache.axis2.AxisFault; > 4. import org.apache.axis2.Constants; > 6. import org.apache.axis2.addressing.EndpointReference; > 7. import org.apache.axis2.client.Options; > 8. import org.apache.axis2.client.ServiceClient; > 9. import org.apache.axis2.om.OMElement; > 10. > 11. public class Client { > 12. > 13. private String endpoint; > 14. > 15. public Client(String endpoint) { > 16. super(); > 17. this.endpoint = endpoint; > 18. } > 19. > 20. public void invokeService(OMElement response) { > 21. EndpointReference epr = new EndpointReference(this.endpoint); > 22. try { > 23. OMElement payload = response; > 24. Options options = new Options(); > 25. options.setTo(epr); > 26. ServiceClient serviceClient = new ServiceClient(); > 27. serviceClient.setOptions(options); > 28. options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > 39. serviceClient.fireAndForget(payload); > 30. } catch (AxisFault axisFault) { > 31. axisFault.printStackTrace(); > 32. } > 33. } > 34. > 35. public String getEndpoint() { > 36. return endpoint; > 37. } > 38. > 49. public void setEndpoint(String endpoint) { > 40. this.endpoint = endpoint; > 41. } > 42. } > > Any subgestions please, would help me very much.... > > Regards, > > Yariel. -- Thanks, Deepal ................................................................ ~Future is Open~