jon
jon

Reputation: 303

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~

Upvotes: 3

Views: 7146

Answers (2)

srdjanradovic
srdjanradovic

Reputation: 1

You also have to put Jersey jar files in the Tomcat lib folder

Upvotes: -1

datalost
datalost

Reputation: 3773

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

Upvotes: 7

Related Questions