You must first download and install the JAX-WS JAR files from the JAX-WS Reference Implementation (RI) project.
Note About the Examples. The examples in this section use /opt as the download and installation directory. However, if you prefer, you can use a different directory. These examples are also intended for a Solaris or Linux system. If you are running on another platform such as Windows, you will need to make changes for the paths and filenames.
Download and unzip Tomcat 6.0 in /opt. For example: /opt/apache-tomcat-6.0.18
Download jaxws-ri.zip from the following site: https://jax-ws.dev.java.net/
Unzip jaxws-ri.zip, also in /opt.
On Solaris and Linux systems, set the JAX-WS RI shell scripts to be executable. For example:
cd /opt/jaxws-ri/bin chmod +x *.sh
In /opt/jaxws-ri/tomcat.xml, modify the tomcat.home property for your deployment. For example:
<property name="tomcat.home" value="/opt/apache-tomcat-6.0.18"/>
Install the JAX-WS JAR files into Tomcat 6.0. For example, using ant:
/share/builds/components/ant/1.6.5/bin/ant -f tomcat.xml install
Configure and deploy your WSP application.
If you are deploying new web services that uses JAX-WS, see Configuring the StockService and StandAloneStockClient Samples as an example to follow for your web services.
If your application is already deployed and using WSS with JAX-WS, you might need only to add the agent filter in the web.xml file.
Install and configure the Tomcat 6.0 version 3.0 agent, as described in this guide.
Follow the general steps to configure the web service provider (WSP) and web service client (WSC) in Web Services Security Support for J2EE Agents in Policy Agent 3.0 in Sun OpenSSO Enterprise Policy Agent 3.0 User’s Guide for J2EE Agents.
Deploy your WSP application into the Tomcat 6.0 web container. For example, to deploy the StockService.war sample:
cp /opt/wsp/samples/tomcat/StockService/dist/StockService.war /opt/apachetomcat-6.0.18/webapps/
Start the Tomcat 6.0 web container.