• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Building and deploying a war archive with Axis 1. in Tomcat

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

web.xml contains:
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="D:/workspace/gateway/bin" path="/Registry">
</Context>

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).

David.
 
I was born with webbed fish toes. This tiny ad is my only friend:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic