Thin application server to demonstrate a web application?

I have a small pet web application project. I would like to show someone who does not have the application server itself (and who does not know about application servers).

What is the easiest and fastest way to make my WAR file work with zero configuration, preferably something that I could send or link to the WAR file? For example, is there a crumpled version of Jetty? Something else?

+3
source share
4 answers

You can easily create a smaller version.

http://docs.codehaus.org/display/JETTY/Embedding+Jetty

http://jetty.mortbay.org/xref/org/mortbay/jetty/example/LikeJettyXml.html

To run the embedded Jetty, you only need the following banks in 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 ...

, Maven plugin .

+3

maven, maven, .

, , , tomcat.

+2

maven, Jetty-runner

https://svn.codehaus.org/jetty-contrib/trunk/jetty-runner

jetty-runner.jar - jar, :

java -jar jetty-runner.jar my.war

+2

, . Maven , .

0

Source: https://habr.com/ru/post/1698789/


All Articles