title: java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
body: <p>I am trying to build a simple hello world application for two days using Jersey + Google app engine. For simple AppEngine project I followed these tutorials and both works just fine
  <a href="https://developers.google.com/appengine/docs/java/gettingstarted/creating" rel="noreferrer">https://developers.google.com/appengine/docs/java/gettingstarted/creating</a>
  <a href="https://developers.google.com/appengine/docs/java/webtoolsplatform" rel="noreferrer">https://developers.google.com/appengine/docs/java/webtoolsplatform</a></p>
  
  <p>But now I am trying to add Jersey and following this tutorial <a href="http://www.vogella.com/articles/REST/article.html" rel="noreferrer">http://www.vogella.com/articles/REST/article.html</a>.</p>
  
  <p>But server keeps giving me </p>
  
  <blockquote>
    <p>java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer</p>
  </blockquote>
  
  <p>when I add these lines in <em>web.xml</em>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  id="WebApp_ID" version="2.5"&gt;
  &lt;display-name&gt;TestServer&lt;/display-name&gt;
  &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.test.myproject&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 REST Service&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I have downloaded Jersey <code>JAX-RS 2.1 RI bundle</code> from <a href="https://jersey.java.net/download.html" rel="noreferrer">here</a> and have added all jar files in <code>WEB-INF/lib</code> folder as described in tutorial. And even after two days nothing is working. I have searched several times on Google and apparently people who are using Maven have solved it somehow but I am not using Maven neither did the guy who wrote that tutorial. </p>
  
  <p>Just to check if even <code>com.sun.jersey.spi.container.servlet.ServletContainer</code> exists in imported  <code>Jersey jars</code> I tried to just write this fully qualified name in Java and let the intellisense finish names but I couldn't get any intellisense after <code>com.sun.je</code> so my last guess is that there have been some <strong>package rearrangement</strong> in latest Jersey build and <code>jersey</code> is no longer inside <code>com.sun</code>. I am exhausted and I would appreciate any kind of help. </p>