Overview

The Fulcrum Jetty Service allows embedding a Jetty HTTP server to serve HTTP request. The main focus is to add HTTP support to an existing non-web application, e.g. for exposing web services. The tests also exercise JSPs and JAAS integration to make sure that everything is properly wired.

How to Test Manually

To make sure that Jetty is properly integrated run the following command line

mvn -Pstandalone test
      

This will start the embedded Jetty and allows manual testing using http://localhost:9080/test/.

JSP Support

The fulcrum-jetty library ships with optional JSP support because

  • most people plainly don't need it and it adds a lot of baggage
  • for supporting JDK 1.4 and 1.5 different libraries are required

JSP 2.1 Support for JDK 1.5

These dependencies are required for running JSP 2.1 on JDK 1.5

<!-- JSP 2.1 dependencies for JDK 1.5 -->
<dependency>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>jsp-2.1</artifactId>
  <version>${jetty.version}</version>
</dependency>