Simple Java stand-alone server container/framework?
<p>For the last couple of years I've had my head in Python, where there are numerous choices for simple, minimal frameworks that allow me to stand up a website or service easily (eg. web.py). I'm looking for something similar in Java.</p>

<p>What is the simplest, least-moving-parts way of standing up simple services using Java these days? I'm looking for something as simple as:</p>

<ul>
<li>the ability to receive HTTP requests</li>
<li>the ability to dispatch those requests to handlers (preferably a regular expression based url to handler mapping facility)</li>
<li>the ability to set HTTP headers and generally fully control the request/response</li>
</ul>

<p>Bonus points if the framework plays well with Jython.</p>

<p>[Update] Thanks for the responses, some of these look quite interesting. I'm not seeing the url dispatch capability in these, however. I'm looking for something similar to Django's url.py system, which looks like:</p>

<pre><code>urlpatterns = patterns('',
    (r'^articles/2003/$', 'news.views.special_case_2003'),
    (r'^articles/(\d{4})/$', 'news.views.year_archive'),
    (r'^articles/(\d{4})/(\d{2})/$', 'news.views.month_archive'),
    (r'^articles/(\d{4})/(\d{2})/(\d+)/$', 'news.views.article_detail'),
)
</code></pre>

<p>Where you specify a url regular expression along with the handler that handles it.</p>
