I have downloaded and imported jars of jersey 1.16, jersey 1.17 and jersey2.23 version separately and together(jersey 2.23 and jersey 1.16). The code gets compiled properly but getting the above error when I try to deploy on Tomcat 7.
I have referred the following tutorials:
RESTful Java client with Jersey client
Implementing RESTFul service with Java
If I use only jersey 2.23 jar then it's throwing error. When I import and use Client package hence I added Jersey-Client-1.2.jar to avoid those error and I also added jersey-container-servlet-core jar to Tomcat lib folder. But error is still existing. Error :
java.lang.ClassNotFoundException:
com.sun.jersey.spi.container.servlet.ServletContainer