开发者

Tomcat Jersey Class Not Found

开发者 https://www.devze.com 2023-04-11 08:38 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号