title: Jersey java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
body: <p>I'm trying to make a web-service with Tomcat and Eclipse using jersey library. 
  This is my service class:    </p>
  
  <pre><code>package com.gontuseries.university;
  
  import javax.ws.rs.core.MediaType;
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  
  
  @Path("/university")
  public class UniversityRestWs {
  
      @GET
      @Produces(MediaType.TEXT_HTML)
      public String getHtmlUniversityInfo(){
          return "&lt;html&gt;&lt;body&gt;test&lt;/body&gt;&lt;/html&gt;";
      }
  
      @GET
      @Produces(MediaType.TEXT_PLAIN)
      public String getTextUniversityInfo(){
          return "test";
      }
  }
  </code></pre>
  
  <p>And this is file web.xml </p>
  
  <pre><code> &lt;servlet&gt;
   &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
   &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;
   &lt;init-param&gt;
   &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
   &lt;param-value&gt;com.gontuseries.university&lt;/param-value&gt;
   &lt;/init-param&gt;
   &lt;/servlet&gt;
   &lt;servlet-mapping&gt;
   &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
   &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>When i test my service i get java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
  I downloaded jersey from <a href="https://jersey.java.net/download.html">https://jersey.java.net/download.html</a> </p>
  
  <p>Can someone help me?
  Thanks</p>