Setting up Jetty in IDEA
Jetty is a lightweight embeddable Servlet/JSP container. I've configured it to run my test Tapestry application in IDEA and the server starts in about a second.
Here are the settings:
- Main class:
org.mortbay.jetty.Server - VM Parameters:
-cp <include all jars from $JETTY_HOME/lib and $JETTY_HOME/ext> - Program parameters:
YOUR-APP-CONFIG.xml
YOUR-APP-CONFIG.xml (Note: default + value of jetty.home will point to directory with your web.xml):
...
<Call name="addWebApplication">
<Arg>/your-app/*</Arg>
<Arg><SystemProperty name="jetty.home" default=".."/>/war/web</Arg>
</Call>
...