Tomcat Jersey Class Not Found
I was following this tutorial on Tomcat and Jersey, but when I try to access it, I get a not found error, and this is output in Eclipse: SEVERE开发者_StackOverflow中文版: Servlet /de.vogella.jersey.first threw load() exception java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
I am using JRE1.7, Eclipse, and the latest version of Jersey.
This and this is what my setup looks like in Eclipse. I tried to keep all of the names the same, but haven't had much luck.
This was the tutorial I was attempting to follow.
Any help appreciated, Thanks~
Do you include the jersey-servlet.jar in the class path? Take a look here to get jersey-servlet.jar
You also have to put Jersey jar files in the Tomcat lib folder
精彩评论