title: Tapestry webapp with embedded Jetty
body: <p>How can I configure a Tapestry5 project to run standalone (via java -jar) with embedded Jetty?</p>
  
  <p>I'm looking for a short "recipe" regarding Tapestry5, Jetty, configuration of servlets/ handlers/ whatever is needed to connect the dots...</p>
  
  <p>I've seen a few dots: <a href="http://fw-geekycoder.blogspot.com/2010/09/how-to-create-executable-war.html" rel="nofollow">How to Create an Executable War</a>, <a href="http://tapestry.apache.org/tapestry5/guide/conf.html" rel="nofollow">Configuring Tapestry (ref Tapestry as servlet filter)</a></p>
  
  <p>Edit: I'm thinking about a standalone running webapp due to server circumstances. It doesn't have to be embedded Jetty, but I can't rely on a stable appserver. Still looking for a recipe, though, so I don't spend much time on dead ends...</p>
  
  <p>Also, I'd like for Jenkins (Hudson) to be able to stop and start the server automatically when deploying updates - I don't know if that influences what I can do with Jetty, f.ex.</p>