title: NoClassDefFoundError when running Jersey in GAE
body: <p>I am trying to expose a web service using Jersey in GAE. </p>
  
  <p>I am getting the following error:</p>
  
  <pre><code>[INFO] java.lang.NoClassDefFoundError: sun.misc.Unsafe is a restricted class. Please see the Google  App Engine developer's guide for more details.
  [INFO]  at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
  [INFO]  at org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.getUnsafe(ConcurrentHashMapV8.java:3502)
  [INFO]  at org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.&lt;clinit&gt;(ConcurrentHashMapV8.java:3467)
  [INFO]  at org.glassfish.jersey.internal.util.collection.DataStructures.createConcurrentMap(DataStructures.java:237)
  [INFO]  at org.glassfish.jersey.message.internal.MessageBodyFactory.&lt;init&gt;(MessageBodyFactory.java:197)
  </code></pre>
  
  <p>Is this a known issue? If so, is there a workaround?</p>
  
  <p>I am using Maven and used the following dependency to add Jersey to the project</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-container-servlet&lt;/artifactId&gt;
      &lt;version&gt;2.3.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Following is the part from my web.xml where I configured Jersey:</p>
  
  <pre><code>    &lt;servlet&gt;
          &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
              &lt;param-value&gt;com.mycompany.myapplication&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  </code></pre>