Problem

Deploying a JAX-WS web service on Tomcat, hits following error message :

java.lang.ClassNotFoundException: 
	com/sun/xml/bind/v2/model/annotation/AnnotationReader

Solution

The JAX-WS dependency library “jaxb-impl.jar” is missing.

  1. Go here http://jax-ws.java.net/.
  2. Download JAX-WS RI distribution.
  3. Unzip it and copy “jaxb-impl.jar” to Tomcat library folder “{$TOMCAT}/lib“.
  4. Restart Tomcat.
Note : You can find more similar articles at - JAX-WS Tutorials