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 thilina madu <ma...@yahoo.com> on 2006/01/30 06:22:04 UTC

[axis2_0_94]module.xml not found for the module

    Hi all,
  
I tried to access service bellow mention way.
There give error why ?
  I think there is no need of writing module for accessing service If I try to 
  access in this manner since just directly access the service not through the 
  Nodes.
   
   
  public class Test {
             public static void main(String args[]) throws AxisFault, XMLStreamException {
             EndpointReference targetechoint = new EndpointReference("http://127.0.0.1:8080/axis2/services/InteropTest/echoInteger");
      
            System.out.println("9.Echoing the Integer");
            System.out.println("Enter the Integer");
              BufferedReader intbuf=new BufferedReader(new InputStreamReader(System.in));
            String intstr="";
              try{
            intstr=intbuf.readLine();
            } catch(IOException excep){
                excep.getStackTrace();
            }
   
              OMFactory intfactory=OMAbstractFactory.getOMFactory();
            OMNamespace omintnames=intfactory.createOMNamespace("http://example1.org/example1","examint");
            OMElement omintelement=intfactory.createOMElement("echointelemen",omintnames);
              omintelement.setText(intstr);
                 
            Options options = new Options();
            options.setTo(targetechoint);
            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            options.setUseSeparateListener(false);
   
              ServiceClient serviceClient = new ServiceClient();
            serviceClient.setOptions(options);
              OMElement result = serviceClient.sendReceive(omintelement);
  
            System.out.println("Check the get values from the Omelemany");
              StringWriter writer = new StringWriter();
            result.serialize(XMLOutputFactory.newInstance()
                    .createXMLStreamWriter(writer));
            writer.flush();
              System.out.println(writer.toString());
      }
   
   
   
  ERRRO given is :
9.Echoing the Integer
Enter the Integer
4
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 Test.main(Test.java:62)
 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:324)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
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)
 ... 11 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)
 ... 15 more
Exception in thread "main" 
Process finished with exit code 1
   
   
   
  Any kind of help is higly appreciate
   



			
---------------------------------
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.