aspose file tools*
The moose likes Other Open Source Projects and the fly likes New to Axis2 - Unable to see the service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "New to Axis2 - Unable to see the service" Watch "New to Axis2 - Unable to see the service" New topic
Author

New to Axis2 - Unable to see the service

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
I am new to Axis2 (using 1.5), but familiar with Axis1. I am trying to see the service using the Axis2 admin console. I am unable to see the service. That can mean many things. Any suggestion will be appreciated. Following are the steps I ahve taken:

1. Deployed axis2.war. As such, I can successfully see http://localhost:9081/axis2/services/listServices But obviously, the new service created by me is not in that list.

2. Created a Java web project and deployed it in the same server where axis2 admin application was deployed. The structure of the Java project is:







services.xml


web.xml


I create a EAR file for this project and deploy it. Axis2WebWs gets deployed successfully. I am not (nor do want to) use Axis2 Admin console for deploy. I was hoping that the url below will show my service add:
http://localhost:9081/axis2/services/listServices

Instead it only lists getVersion method from Axis2 Admin console.

What am I missing?


Even though I do not want to deploy it using Axis2 Admin console, but for troubleshooting purposes, I changed ear file to aar file and wanted to upload that aar file using Axis2 Admin console. When I looked for the service, it mentioned faulty service. I said that cannot find services.xml.

Any suggestion will be appreciated. Again, I want to deploy the EAR file using Admin console of the app server only (will be scripted eventually), instead of relying on Axis2 Admin console.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41874
    
  63
You could either use the admin client's Ant task (for which you'd need a jar file containing the classes and a WSDD deployment descriptor), or you can create an .aar file that contains the classes and a META-INF/services.xml file. A loose META-INF directory will not work, no matter where it's located.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: New to Axis2 - Unable to see the service