Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Libraries for embedding Jetty?

Embedding Jetty webserver into a Java application is supposedly easy; examples abound.

No examples indicate the Jetty libraries that must be imported.

I have downloaded the Jetty distribution package... it has 36 jar files.

Where can I find a step-by-step example of exactly must be accomplished to embed Jetty in an application?

like image 308
corgrath Avatar asked Nov 19 '10 09:11

corgrath


1 Answers

From the docs, libraries for embedding Jetty 6:

servlet-api-2.5-6.x.jar
jetty-util-6.x.jar
jetty-6.x.jar

For JSP you'll need additional jars.

For Jetty 8, try:

jetty-continuation-8.*.jar
jetty-http-8.*.jar
jetty-io-8.*.jar
jetty-server-8.*.jar
jetty-util-8.*.jar
servlet-api-3.0.jar

See also: http://wiki.eclipse.org/Jetty/Tutorial/Jetty_HelloWorld

like image 196
Peter Knego Avatar answered Sep 28 '22 06:09

Peter Knego