java.lang.ClassNotFoundException : com/sun/xml/stream/buffer/XMLStreamBuffer

Problem

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


java.lang.ClassNotFoundException: 
	com/sun/xml/stream/buffer/XMLStreamBuffer

Solution

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

  1. Go here http://jax-ws.java.net/.
  2. Download JAX-WS RI distribution.
  3. Unzip it and copy “streambuffer.jar” to Tomcat library folder “{$TOMCAT}/lib“.
  4. Restart Tomcat.

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
ameya
12 years ago

thanks