java.lang.ClassNotFoundException : com/sun/xml/bind/v2/model/annotation/AnnotationReader
Published: November 18, 2010 , Updated: November 22, 2010 , Author: mkyong
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.
- Go here http://jax-ws.java.net/.
- Download JAX-WS RI distribution.
- Unzip it and copy “jaxb-impl.jar” to Tomcat library folder “{$TOMCAT}/lib“.
- Restart Tomcat.
Note : You can find more similar articles at - JAX-WS Tutorials





