Main Tutorials

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 Author

author image
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

Subscribe
Notify of
2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Punith
11 years ago

I am trying out the program written by you in the link https://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.

PAtrick
10 years ago
Reply to  Punith

jaxws-api.jar !!!! no jaxws-api-2.1.1.jar