Table Jetty Versions
Version | Year | Home | JVM | Protocols | Servlet | JSP | Status |
---|---|---|---|---|---|---|---|
9 | 2012 | Eclipse | 1.7 | HTTP/1.1 RFC2616, WebSocket RFC 6455, SPDY v3 | 3.0 (3.1 branch) | 2.2 | Stable |
8 | 2009- | Eclipse/Codehaus | 1.6 | HTTP/1.1 RFC2616, WebSocket RFC 6455, SPDY v3 | 3.0 | 2.2 | Mature |
7 | 2008- | Eclipse/Codehaus | 1.5 | HTTP/1.1 RFC2616, WebSocket RFC 6455, SPDY v3 | 2.5 | 2.1 | Mature |
6 | 2006-2010 | Codehaus | 1.4-1.5 | HTTP/1.1 RFC2616 | 2.5 | 2.0 | Venerable |
Jetty 8/9
In order to use JSPs with your webapps and bundles you will need to install the JSP related jars into your OSGi container. You can use the jars from the jetty distribution in the $JETTY_HOME/lib/jsp directory, or you can download them from maven central. Here is the list of recommended jars (NOTE the version numbers may change in future):
Table Jars Required for JSP
Jar | Bundle Symbolic Name |
---|---|
com.sun.el-2.2.0.v201303151357.jar | com.sun.el |
javax.el-2.2.0.v201303151357.jar | javax.el |
javax.servlet.jsp-2.2.0.v201112011158.jar | javax.servlet.jsp |
javax.servlet.jsp.jstl-1.2.0.v201105211821.jar | javax.servlet.jsp.jstl |
org.apache.jasper.glassfish-2.2.2.v201112011158.jar | org.apache.jasper.glassfish |
org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar | org.apache.taglibs.standard.glassfish |
org.eclipse.jdt.core-3.8.2.v20130121.jar | org.eclipse.jdt.core.compiler.batch |
The jetty-osgi-boot-jsp jar
This bundle acts as a fragment extension to the jetty-osgi-boot.jar and adds in support for using JSP. If you do not use taglibs, or you only use the JSTL taglibs then you do not need to do any further configuration.
Jetty 6/7
To run 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
This gives you the capability to handle HTTP with handlers, servlets and webapplications.
Additional features such as JSP and AJP require additional jars (normally found in subdirectories of $JETTY_HOME/lib).
JSP2.1
This is the jsp version mandated by servlet specification 2.5. You will need these jars:
ant-1.6.5.jar
core-3.1.1.jar
jsp-2.1.jar
jsp-api-2.1.jar
You need to use J2SE5 (aka jdk 1.5) if you wish to use JSP2.1.
JSP2.0
JSP 2.0 is used with version 2.4 of the servlet specification. Depending on the functionality you require, you may be able to use this version rather than the newer JSP2.1
These are the dependencies when JSP 2.0 is used:
ant-1.6.4.jar
jasper-compiler-5.5.15.jar
jasper-runtime-5.5.15.jar
jsp-api-2.0.jar
commons-el-1.0.jar
jcl104-over-slf4j-1.0-rc5.jar
slf4j-simple-1.0-rc5.jar
xmlParserAPIs-2.6.2.jar
xercesImpl-2.6.2.jar