Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to Axis2 - Unable to see the service

 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic