title: ClassNotFoundException: javax.servlet.AsyncContext in Jetty hello world in eclipse
body: <p>I have followed the link <a href="http://wiki.eclipse.org/Jetty/Tutorial/Jetty_HelloWorld" rel="nofollow noreferrer">http://wiki.eclipse.org/Jetty/Tutorial/Jetty_HelloWorld</a> tutorial (with Eclipse). and also looked at the existing stackoverflow <a href="https://stackoverflow.com/questions/9037492/classnotfoundexception-javax-servlet-asynccontext-in-jetty-hello-world">here</a></p>
  
  <p>I am using the aggregate jetty 8.0.0.jar and 8.1.3.jar along with the servlet-api-2.5.jar. I have added these 2 jars to the class path and also included the slf4j-simple-1.6.4.jar too.</p>
  
  <p>I am still getting </p>
  
  <p>`<br>
      2012-05-23 15:23:06.813:WARN:oeji.nio:
      java.lang.NoClassDefFoundError: javax/servlet/AsyncContext</p>
  
  <pre><code>at org.eclipse.jetty.server.HttpConnection.&lt;init&gt;(HttpConnection.java:155)
  at org.eclipse.jetty.server.AsyncHttpConnection.&lt;init&gt;(AsyncHttpConnection.java:19)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection.&lt;init&gt;(SelectChannelConnector.java:309)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection.&lt;init&gt;(SelectChannelConnector.java:303)
  at org.eclipse.jetty.server.nio.SelectChannelConnector.newConnection(SelectChannelConnector.java:286)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.newConnection(SelectChannelConnector.java:364)
  at org.eclipse.jetty.io.nio.SelectChannelEndPoint.&lt;init&gt;(SelectChannelEndPoint.java:71)
  at org.eclipse.jetty.server.nio.SelectChannelConnector.newEndPoint(SelectChannelConnector.java:274)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.newEndPoint(SelectChannelConnector.java:370)
  at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.createEndPoint(SelectorManager.java:938)
  at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:497)
  at org.eclipse.jetty.io.nio.SelectorManager$1.run(SelectorManager.java:283)
  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
  at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
  at java.lang.Thread.run(Thread.java:679)
  
     Caused by: 
      java.lang.ClassNotFoundException: javax.servlet.AsyncContext
  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
  at org.eclipse.jetty.server.HttpConnection.&lt;init&gt;(HttpConnection.java:155)
  at org.eclipse.jetty.server.AsyncHttpConnection.&lt;init&gt;(AsyncHttpConnection.java:19)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection.&lt;init&gt;(SelectChannelConnector.java:309)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection.&lt;init&gt;(SelectChannelConnector.java:303)
  at org.eclipse.jetty.server.nio.SelectChannelConnector.newConnection(SelectChannelConnector.java:286)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.newConnection(SelectChannelConnector.java:364)
  at org.eclipse.jetty.io.nio.SelectChannelEndPoint.&lt;init&gt;(SelectChannelEndPoint.java:71)
  at org.eclipse.jetty.server.nio.SelectChannelConnector.newEndPoint(SelectChannelConnector.java:274)
  at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.newEndPoint(SelectChannelConnector.java:370)
  at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.createEndPoint(SelectorManager.java:938)
  at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:497)
  at org.eclipse.jetty.io.nio.SelectorManager$1.run(SelectorManager.java:283)
  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
  at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
  at java.lang.Thread.run(Thread.java:679)
  </code></pre>
  
  <p>`   </p>
  
  <p>Any thoughts ? </p>