• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

New to Axis2 - Unable to see the service

 
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.
 
Rancher
Posts: 43011
76
  • 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.
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!