0
votes

I tried to install Axis2 on our Tomcat server. In theory - its easy. I downloaded axis2.war from here: http://axis.apache.org/axis2/java/core/download.cgi

I opened Tomcat's Manager, browse the file, than deploy the file. Its finished without error, great! Now deploy my webservice file.

I tried to open Axis2, but all of its links start with 127.0.0.1, like my PC would be the server! What? Of course, none of these links works, because my PC dosen't have a Tomcat and Axis2 installed.

We tried it on antoher computer - with the same result. We tried to edit some config files (actually change all 127.0.0.1 references to our Tomcat servers IP) but it didn't helped.

So why we have this strange error?

Thanks for help!

1

1 Answers

0
votes

It is unclear what is your problem, but I'll explain what is the process to deploy Axis2 inside the tomcat and how to add a service to it.

  1. Shutdown the tomcat server if it is running. (shutdown.bat/shutdown.sh inside tomcat/bin)
  2. Put the Axis2.war file inside tomcat/webapps directory.
  3. Start the tomcat server (startup.bat/startup.sh tomcat/bin)
  4. Now there should be a directory named as a Axis2 inside the webapps directory, which is the deployed axis2.
  5. Now you should be able to access your Axis2 using http://127.0.0.1:8080/Axis2
  6. You can deploy a service using Axis 2 management console or directly to the tomcat/webapps/axis2/web-inf/services directory as a .aar file or simple directory (In correct format)

NOTE: Make sure your port 8080 is not using by any other application when you are starting the tomcat instance. Otherwise change the default port to some other inside web.xml.