Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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: 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~

like image 622
jon Avatar asked Jan 29 '26 05:01

jon


1 Answers

Do you include the jersey-servlet.jar in the class path? Take a look here to get jersey-servlet.jar

like image 95
datalost Avatar answered Jan 30 '26 19:01

datalost



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!