Jetty

From DesigningPatterns

Jump to: navigation, search

Background

Jetty is a web server and Java Servlet Container. It competes with Tomcat. Jetty was designed to be embeddable and a number of application servers can be integrated with it, such as JBoss. We use it at Designing Patterns because it is easier to integrate into the build process (our build scripts launch Jetty instances, one for each programmer), and it appears to be more stable than Tomcat (especially with regard to fewer out of memory issues).

Configuration

  • Make jetty listen on port 8082 by editing JETTY_BASE/etc/jetty.xml (Tomcat uses port 8080).
  • Edit JETTY_BASE/etc/start.config in order to include jasper-jdt.jar, since Jetty uses Jasper (which in turn needs Ant or JDT; see Tomcat for more details).
Personal tools