Hello,

I am trying to deploy my first web service using AXIS2. But every time I start tomcat, the deploy mechanism fails. AXIS2 is not able to detect the services.xml file, although I placed it in the META-INF directory.

Here is the structure of the HelloWorld.aar:
HelloWorld
       |-----META-INF
               |-----services.xml
       |-----testpackage
               |-----HelloWorld.class


Content of HelloWorld.java:
//##################################
package testpackage;

public class HelloWorld {

   public String sayHello(String name) {
         return "Hello " + name;
      }
}
//##################################

Content of services.xml:
//##################################
<service>
  <description>
     This is my first service, which says hello
  </description>
  <parameter name="ServiceClass">testpackage.HelloWorld</parameter>
  <operation name="sayHello">
     <messageReceiver
     class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
  </operation>
</service>
//##################################

The following error is displayed when starting tomcat:
//##################################
- Invalid service HelloWorld.aar due to services.xml not found for service 'C:\ Dokumente und Einstellungen\thorsten\Desktop\WWW\apache-tomcat-5.5.17\webapps\ax
is2\WEB-INF\services\HelloWorld.aar'; nested exception is:
org.apache.axis2.deployment.DeploymentException: services.xml not found for service 'C:\Dokumente und Einstellungen\thorsten\Desktop\WWW\apache-tomcat-5
.5.17\webapps\axis2\WEB-INF\services\HelloWorld.aar'
//##################################

Can anyone tell me what's going wrong?



Regards,
Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to