To use JAX-WS 2.1 with Tomcat
1. Downloadthe JAX-WS libraries
2. Install (or Extract) the downloaded file with
java -jar JAXWS2.1.2-20070917.jar3. Assuming the libraries were installed on $CATALINA_HOME/jaxws-ri, edit shared.loader property in $CATALINA_HOME/conf/catalina.properties as follows
shared.loader=$CATALINA_HOME/jaxws-ri/lib/*.jarIf $CATALINA_HOME is not defined on the environment edit catalina.properties as
Be sure to have the web.xml and sun-jaxws.xml files in the WS deployment .war, unlike glassfish and weblogic, this tomcat configuration doesn't auto create them and wsdl won't be exposed.