title: Issue with ServletContainer in REST
body: <p>I am trying to write a REST service with JSON. When I am running my project in eclipse I am getting below exception.</p>
  
  <pre><code>SEVERE: Servlet [jersey-serlvet] in web application [/Ram] threw load() exception
  java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
  </code></pre>
  
  <p>I have checked for solution in other <a href="https://stackoverflow.com/questions/18086218/java-lang-classnotfoundexception-com-sun-jersey-spi-container-servlet-servletco">stackoverflow</a> question, it's not helped me.
  Can anyone suggest what I missed?</p>
  
  <p>POM dependencies :</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
      &lt;version&gt;1.8&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
      &lt;version&gt;1.8&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Service class :</p>
  
  <pre><code>@Path("/getJson")
  public class JsonExWithPojo {
  
      @GET
      @Path("/getStudent/{name}")
      @Produces(MediaType.APPLICATION_JSON)
      public Student getStudent(@PathParam("name") String name) {
  
          Student student = new Student();
          student.setStudentNo(418);
          student.setStudentName(name);
          student.setStudentAge(30);
          return student;
      }
  
      @GET
      @Produces("text/html")
      public Response sayHello() {
          return Response.status(200).build();
      }
  
  }
  </code></pre>
  
  <p>My POJO : </p>
  
  <pre><code>public class Student {
  
      private int studentNo;
      private String studentName;
      private int studentAge;
      //setters and getters
  
  }
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>    &lt;servlet&gt;
          &lt;servlet-name&gt;jersey-serlvet&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.example.myproject&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;com.sun.jersey.api.json.POJOMappingFeature&lt;/param-name&gt;
              &lt;param-value&gt;true&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;jersey-serlvet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>