Arun Gupta, Miles to go ...

Arun Gupta is a technology enthusiast, a passionate runner, and a community guy who works for Sun Microsystems.
« Previous day (Mar 16, 2006) | Main | Next day (Mar 18, 2006) »

http://blogs.sun.com/arungupta/date/20060317 Friday March 17, 2006

JAX-WS 2.0 Samples on Tomcat 5.5.x

Starting today's nightly, the JAX-WS samples can be easily run on Tomcat 5.5.x. This blog tells you how to install a JAX-WS nightly build on Tomcat container and run the samples using that.

Installing JAX-WS 2.0 on Tomcat

  1. Download JAXWS_SI.jar from the nightly build and install it on your machine by giving the following command:

    java -jar JAXWS_SI.jar

    This will install JAX-WS binaries, samples, documentation and other files in jaxws-ri directory (JAXWS_HOME) in your current directory.
  2. Download and save this script (jaxwsontomcat.xml) in JAXWS_HOME directory.
  3. Please make sure CATALINA_HOME environment variable points to the directory where Tomcat is installed. Go to JAXWS_HOME directory and invoke:

    ant -f jaxwsontomcat.xml install

Running the Samples

To develop and deploy the samples on Tomcat, you need to give the following command:

ant server -Dtomcat=true

To develop and deploy the samples on Application server, you need to give the following command:

ant server

If you are familiar with the samples framework, then this is the same command as before. 

To invoke the deployed WAR file, follow the instructions from the samples documentation. All of your samples can now be deployed on Tomcat container, in addition to Sun's Application Server.

Hope you find this useful.


Technorati: Tomcat jwsdp

del.icio.us | furl | simpy | slashdot | technorati | digg |
|
« Previous day (Mar 16, 2006) | Main | Next day (Mar 18, 2006) »

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.