title: Lightweight alternative to Jetty
body: <p>Usually <strong>Jetty</strong> is mentioned as <em>the</em> lightweight alternative when it comes to servlet containers like Tomcat and App Servers like Glassfish.</p>
  
  <p>I want to run a RESTful service on CloudFoundry. Using jetty-runner </p>
  
  <pre><code>java -jar target/dependency/jetty-runner.jar target/*.war
  </code></pre>
  
  <p>works kind of fine, except I kind of run into problems running Jetty 9.1.3 (current stable) /w <strong>Java 8</strong>. So I <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=430450">contributed a patch</a> to fix this issue and some other minor code cleanup patches. Hereby I saw the code of Jetty which was not in a shape I hoped it to be... </p>
  
  <p>Well I just don't want to entrust my enterprise app to Jetty and looking for alternatives. Also with <strong>5.x MB, jetty-runner.jar</strong> is still huge. I managed to <strong>strip it down to 1.6 MB</strong> and I was still able to run my app. So an even more lightweight approach is feasible. </p>
  
  <p>Is there a lightweight version of GlassFish or Tomcat. <strong>I just need the servlet-api.jar (v3.1) being run in a web server context. No JSP, no websocket-server, no other Voodoo.</strong> </p>