Building and deploying a war archive with Axis 1. in Tomcat
posted 9 years ago
I wrote a java app that I then "wrapped up" in an axis1 webservice. By wrap, I mean I created an interface (and its implementation) to my app. Using that interface, I generated the service's wsdl with java2wsdl and then generated the java stubs using java2wsdl.
I now want to bundle everything in a war file. I understand a war file is built as follows: - 2 top folders a. meta-inf b. web-inf
meta-inf contains 1 file, manifest.mf, automatically created by ant's war task.
web-inf contains: a. all the libs my app needs (including the axis libs) in a lib folder b. all my app's classes in the classes folder c. web.xml
Building the war file was easily done with the ant war task.
From what I understand, what should happen when I deploy it in Tomcat, it should copy the web.xml to the %CATALINA_HOME%\conf\Catalina\localhost folder and that should be it. But it's not quite the case. In addition it deploys (unzips) the war to a location in webapps, the location being the filename of the war archive (e.g. unzips bla.war to webapps/bla) rather than the path given in Context in web.xml.
I tried locating a tutorial explaining how to build and deploy your service but no luck! I'd appreciate any insight you may have (or pointers / references).
No matter what they say in Ohio, we're still first in flight!