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.

2 comments on “java.lang.ClassNotFoundException : javax.xml.ws.soap.AddressingFeature$Responses

  1. 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.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *