I have a little pet web app project I'd like to show someone who doesn't have an application server themselves (and who has no clue about application servers).
What is the easiest and quickest way for them to get my WAR file running with zero configuration, preferably something I could send along with or bundle with the WAR file? Is there a slimmed down version of Jetty, for example? Something else?
You can create the slimmed down version yourself easily.
http://docs.codehaus.org/display/JETTY/Embedding+Jetty
http://jetty.mortbay.org/xref/org/mortbay/jetty/example/LikeJettyXml.html
To run embedded Jetty you need only the following jars on the classpath:
* servlet-api-2.5-6.x.jar
* jetty-util-6.x.jar
* jetty-6.x.jar
/usr/local/jetty-6.1.4/lib> ls -la servlet-api-2.5-6.1.4.jar jetty-*
-rw-rw-r-- 1 wwwrun admin 476213 2007-06-15 08:42 jetty-6.1.4.jar
-rw-rw-r-- 1 wwwrun admin 128026 2007-06-15 08:40 jetty-util-6.1.4.jar
-rw-rw-r-- 1 wwwrun admin 131977 2007-06-15 08:40 servlet-api-2.5-6.1.4.jar
Very light...
Alternatively, the Maven plugin can work as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With