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.
- Go here http://jax-ws.java.net/.
- Download JAX-WS RI distribution.
- Unzip it and copy “jaxws-api.jar” to Tomcat library folder “{$TOMCAT}/lib“.
- Restart Tomcat.
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.
jaxws-api.jar !!!! no jaxws-api-2.1.1.jar