Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slim application server for demonstrating a web app?

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?

like image 607
Epaga Avatar asked May 09 '26 17:05

Epaga


1 Answers

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.

like image 64
Vinko Vrsalovic Avatar answered May 11 '26 07:05

Vinko Vrsalovic