java.lang.ClassNotFoundException : javax.xml.ws.soap.AddressingFeature$Responses

Problem

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


java.lang.ClassNotFoundException: 
	javax.xml.ws.soap.AddressingFeature$Responses

Solution

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

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

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
2 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
PAtrickPunithJAX-WS Tutorial Recent comment authors
newest oldest most voted
trackback
JAX-WS Tutorial

[…] : com/sun/xml/ws/policy/PolicyExceptionjava.lang.ClassNotFoundException : javax.xml.ws.soap.AddressingFeature$Responsesjava.lang.ClassNotFoundException : […]

Punith
Guest
Punith

I am trying out the program written by you in the link http://www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example/.

I am using axis2, eclipse IDE, Tomcat6.
While trying to run the publisher class i was getting the error – java.lang.ClassNotFoundException : javax.xml.ws.soap.AddressingFeature$Responses

I placed the jar as jaxws-api-2.1.1.jar in tomcat/lib folder.
Restarted the tomcat and tried running the class again.
But i am still facing the same problem..
Kindly suggest as to where i am going wrong.