Jetty Logo
Contact the core Jetty developers at www.webtide.com

private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery

Jetty : The Definitive Reference

Revision History
Revision @JETTY_VERSION@ 2013-04-18 13:00:15

This documentation is produced and contributed to under the EPL


Table of Contents

I. Quick Start Guide
1. Introducing Jetty
What is Jetty?
What Version Do I Use?
2. Quick Start Jetty
Downloading Jetty
Running Jetty
Deploying Web Applications
Finding in Maven
3. Quick Start Configuration
How to Configure Jetty
What to Configure in Jetty
II. Jetty Configuration Guide
4. Configuring Jetty Connectors
Connector Configuration Overview
Configuring SSL
Setting Port 80 Access for a Non-Root User
5. Configuring Contexts
Setting a Context Path
Configuring Virtual Hosts
Configuring WebAppContexts
Serving a WebApp from a Particular Port/Connector
Creating Custom Error Pages
6. Configuring Security
Authentication
Authorization
Limiting Form Content
Aliased Files and Symbolic links
Secure Password Obfuscation
7. Deploying to Jetty
Anatomy of a Web Application
Automatic Web Application Deployment
Configuring a Specific Web Application Deployment
Configuring Static Content Deployment
Hot Deployment
Deployment Architecture
8. Configuring JSP Support
Configuring JSP
9. Jetty Logging
Configuring Jetty Logging
Configuring Jetty Request Logs
Example: Logging with Apache Log4j
Example: Logging with Java's java.util.logging
Example: Logging with Logback
Example: Capturing Multiple Logging frameworks with Slf4j
Example: Centralized Logging with Logback
10. Configuring WebSockets
Configuring WebSockets
III. Advanced Topics Guide
11. Session Management
Setting Session Characteristics
Using Persistent Sessions
Session Clustering with a Database
Session Clustering with MongoDB
12. Configuring JNDI
Quick Setup
Detailed Setup
Working with Jetty JNDI
Configuring JNDI
Datasource Examples
13. JMX
Using Java Management Extensions (JMX)
14. NPN
15. SPDY
Introducing SPDY
Configuring SPDY
Configuring SPDY Proxy
16. Starting Jetty
Start Features
Start Option Matrix
17. Handlers
Rewrite Handler
Writing Custom Handlers
18. Embedding
Jetty Embedded HelloWorld
Embedding Jetty
19. Maven and Jetty
Using Maven
Configuring the Jetty Maven Plugin
20. Using Ant with Jetty
Using the Ant Jetty Plugin
21. Jetty Runner
Use Jetty without an installed distribution
22. Setuid
Configuring Setuid
23. Advanced Security Topics
Spnego Support
24. Frameworks
Spring Setup
OSGI
25. Optimizing Jetty
Garbage Collection
High Load
Limiting Load
26. Troubleshooting
Troubleshooting Zip Exceptions
Troubleshooting Locked Files on Windows
Preventing Memory Leaks
IV. Jetty Client Guide
27. HTTP Client
Introduction
API Usage
Other Features
28. Websocket Clients
Sample Title
29. Spdy Clients
Sample Title
V. Reference Guide
30. Architecture
Jetty 7 Architecture
Jetty Classloading
31. Contributing to Jetty
Community
Documentation
Coding Standards
Contributing Patches
Releasing Jetty
Testing a Jetty Release
32. Reference Section
Jetty XML Syntax
Jetty XML Usage
jetty.xml
jetty-web.xml
jetty-env.xml
webdefault.xml
Jetty override-web.xml
33. Upgrading Jetty
TBD
34. Frequently Asked Questions

List of Tables

1.1. Jetty Versions
2.1. Contents
4.1. Connector Configuration
5.1. Default Configuration classes
5.2. JNDI Configuration classes
5.3. Annotation Configuration classes
8.1. Understanding JSP Parameters
9.1. Logging Parameters
9.2. Slf4j Logging Grid
11.1. Init Parameters
12.1. DataSource Declaration Conventions
14.1. NPN vs. OpenJDK versions
24.1. Jars Required for JSP
30.1. Default System Classes
30.2. Default Server Classes

List of Examples

Client Example.
Server Example.

See an error or something missing? Contribute to this documentation at Github!