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.

mkyong

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

2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Punith
13 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
12 years ago
Reply to  Punith

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