Difference between revisions of "Jetty"

From Eclipsepedia

Jump to: navigation, search
m
(27 intermediate revisions by 4 users not shown)
Line 4: Line 4:
  
 
= Jetty Documentation =
 
= Jetty Documentation =
 +
 +
{{Jetty Redirect|http://www.eclipse.org/jetty/documentation}}
 +
 +
Also see the [http://www.eclipse.org/jetty Jetty homepage]!
  
 
<br/>
 
<br/>
  
 
<div style="float: left; width: 45%; margin-left: 5px">
 
<div style="float: left; width: 45%; margin-left: 5px">
== Getting Started: Download, Install, Configure, Run  ==
+
== Getting Started: Download, Install, Run  ==
  
 
[http://vimeo.com/19145819 Getting Started with Jetty (video)]<br/>  
 
[http://vimeo.com/19145819 Getting Started with Jetty (video)]<br/>  
 
[[Jetty/Starting/Downloads|Download and Install Jetty]]<br/>  
 
[[Jetty/Starting/Downloads|Download and Install Jetty]]<br/>  
[[Jetty/Howto/Install Jetty/Bundle|How to Install a Jetty Bundle]]<br/>
 
 
[[Jetty/Howto/Run Jetty|How to Run Jetty]]<br/>  
 
[[Jetty/Howto/Run Jetty|How to Run Jetty]]<br/>  
[[Jetty/Howto/Run Jetty with JConsole|How to Run Jetty with JConsole]]<br/>  
+
* [[Jetty/Howto/Run Jetty with JConsole|How to Run Jetty with JConsole]]<br/>
 +
* [[Jetty/Howto/Using Jetty Runner|How to Run Jetty from a single jar]] <br/>
 +
* [[Jetty/Feature/Jetty Maven Plugin|How to Run Jetty from Maven]] <br/>
 +
* [[Jetty/Howto/Use Jetty with Ant|How to Run Jetty from Ant]] <br/>
 +
* [[Jetty/Tutorial/Embedding Jetty|How to Embed Jetty]] <br/>
 
[[Jetty/Tutorial/Jetty HelloWorld|Jetty HelloWorld Tutorial]]<br/>  
 
[[Jetty/Tutorial/Jetty HelloWorld|Jetty HelloWorld Tutorial]]<br/>  
 
[[Jetty/Tutorial/Jetty and Maven HelloWorld|Jetty and Maven HelloWorld Tutorial]]<br/>  
 
[[Jetty/Tutorial/Jetty and Maven HelloWorld|Jetty and Maven HelloWorld Tutorial]]<br/>  
 
[http://www.itjungle.com/fhg/fhg082708-story02.html Getting Starting with Jetty (6) (on www.itjungle.com)]<br/>  
 
[http://www.itjungle.com/fhg/fhg082708-story02.html Getting Starting with Jetty (6) (on www.itjungle.com)]<br/>  
[[Jetty/Feature/Start.jar|Jetty Start.jar]]  
+
[[Jetty/Feature/Start.jar|Jetty Start.jar]]
  
 
== Configuring Jetty  ==
 
== Configuring Jetty  ==
  
 
[[Jetty/Howto/Configure Jetty|Configuring Jetty]] – '''Master Doc'''<br/>
 
[[Jetty/Howto/Configure Jetty|Configuring Jetty]] – '''Master Doc'''<br/>
Configuring:
+
Configuring...
 
* [[Jetty/Howto/SetContextPath|A Context Path]]<br/>
 
* [[Jetty/Howto/SetContextPath|A Context Path]]<br/>
 +
**[[Jetty/Howto/SetContextPathto_/|A Context Path to /]]<br/>
 
**[[Jetty/Howto/MovedContextHandler|Redirecting or Moving a Context]]<br/>
 
**[[Jetty/Howto/MovedContextHandler|Redirecting or Moving a Context]]<br/>
 
* [[Jetty/Howto/Configure Connectors|Connectors]]<br/>
 
* [[Jetty/Howto/Configure Connectors|Connectors]]<br/>
Line 31: Line 39:
 
* [[Jetty/Tutorial/JMX|JMX]]
 
* [[Jetty/Tutorial/JMX|JMX]]
 
** [[Jetty/Feature/JMX|Java Management Extensions (JMX)]]<br/>  
 
** [[Jetty/Feature/JMX|Java Management Extensions (JMX)]]<br/>  
** [[Jetty/Tutorial/JMX|Configuring JMX integrations]]<br/>
 
 
* [[Jetty/Feature/JNDI|JNDI]]<br/>  
 
* [[Jetty/Feature/JNDI|JNDI]]<br/>  
 
**[[Jetty/Howto/Configure_JNDI_Datasource|A JNDI Datasource]]<br/>
 
**[[Jetty/Howto/Configure_JNDI_Datasource|A JNDI Datasource]]<br/>
 +
* [[Jetty/Feature/Annotations|Annotations]]<br/>
 
* [[Jetty/Howto/Configure JSP|JSP]]<br/>
 
* [[Jetty/Howto/Configure JSP|JSP]]<br/>
 
* [[Jetty/Howto/Port80|Port 80 Access as a Non-Root User]]<br/>
 
* [[Jetty/Howto/Port80|Port 80 Access as a Non-Root User]]<br/>
Line 44: Line 52:
 
* [[Jetty/Howto/Configure Virtual Hosts|Virtual Hosts]]<br/>   
 
* [[Jetty/Howto/Configure Virtual Hosts|Virtual Hosts]]<br/>   
 
* [[Jetty/Howto/WebappPerConnector|A Web App to Respond on a Specific Port]]<br/>
 
* [[Jetty/Howto/WebappPerConnector|A Web App to Respond on a Specific Port]]<br/>
 +
* [[Jetty/Howto/Prevent Memory Leaks| Memory Leak Prevention]]<br/>
 +
* [[Jetty/Howto/How to serve symbolically linked files|Serving symbolically linked files]]<br/>
  
 
=== Embedding Jetty  ===
 
=== Embedding Jetty  ===
Line 64: Line 74:
 
[[Jetty/Feature/ContextDeployer|Using the Context Provider]]<br/>  
 
[[Jetty/Feature/ContextDeployer|Using the Context Provider]]<br/>  
 
[[Jetty/Howto/Deploy Web Applications|Deploying Web Applications]]<br/>  
 
[[Jetty/Howto/Deploy Web Applications|Deploying Web Applications]]<br/>  
[[Jetty/Feature/WebAppDeployer|Using the WebApp Provider]]<br/>  
+
[[Jetty/Feature/WebAppDeployer|Using the WebApp Provider]]<br/>
 +
[[Jetty/Tutorial/Configuring_the_Jetty_Overlay_Deployer|Using the Overlay Deployer]]<br/>  
 
[[Jetty/Howto/Deploy 3rd Party Products|Deploying Third Party Products]]<br/>  
 
[[Jetty/Howto/Deploy 3rd Party Products|Deploying Third Party Products]]<br/>  
 
[[Jetty Expanded Webapp Deploy|Expanded Webapp Deploy]]  
 
[[Jetty Expanded Webapp Deploy|Expanded Webapp Deploy]]  
Line 75: Line 86:
 
== Build/IDE Integration  ==
 
== Build/IDE Integration  ==
  
[[Jetty/Howto/Use Jetty with Maven|Using Jetty with Maven]]<br/>  
+
[[Jetty/Howto/Use Jetty with Maven|Using Jetty with Maven]]<br/>
 +
* [[Jetty/Feature/Jetty Maven Plugin|Jetty Maven Plugin]]<br/>
 +
* [[Jetty/Feature/Jetty Jspc Maven Plugin|Jetty Jspc Maven Plugin]]<br/>
 +
* Maven Web App Project Archetypes<br/>  
 
[[Jetty/Howto/Use Jetty with Ant|Using Jetty with Ant]]  
 
[[Jetty/Howto/Use Jetty with Ant|Using Jetty with Ant]]  
 
+
* [[Jetty/Howto/Use Jetty with Ant|Ant Jetty Plugin]]  
=== More Maven and Ant Support ===
+
 
+
[[Jetty/Feature/Jetty Maven Plugin|Jetty Maven Plugin]]<br/>
+
[[Jetty/Feature/Jetty Jspc Maven Plugin|Jetty Jspc Maven Plugin]]<br/>
+
Maven Web App Project Archetypes<br/>
+
Ant Jetty Plugin
+
  
 
=== Using IDEs  ===
 
=== Using IDEs  ===
Line 92: Line 100:
 
=== Working with Eclipse  ===
 
=== Working with Eclipse  ===
  
Developing Jetty in Eclipse<br/>  
+
[[Jetty/Howto/Develop_with_Eclipse|Developing Jetty in Eclipse]]<br/>  
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin Using the Jetty WTP Plugin]<br/>
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin Using the Jetty WTP Plugin]<br/>
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Install Installing the Jetty WTP Plugin]<br/>
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Install Installing the Jetty WTP Plugin]<br/>
Line 98: Line 106:
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Modify_ContextPath Modifying the Context Path with the WTP Plugin]<br/>
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Modify_ContextPath Modifying the Context Path with the WTP Plugin]<br/>
 
[http://wiki.eclipse.org/Jetty-OSGi_SDK JettyOSGi SDK for Eclipse-PDE]<br/>  
 
[http://wiki.eclipse.org/Jetty-OSGi_SDK JettyOSGi SDK for Eclipse-PDE]<br/>  
[http://wiki.eclipse.org/Jetty/Tutorial/EclipseRT-Jetty-Starter-Kit EclipseRT Jetty StarterKit SDK]  
+
[http://wiki.eclipse.org/Jetty/Tutorial/EclipseRT-Jetty-Starter-Kit EclipseRT Jetty StarterKit SDK]
  
 
== Configuring Ajax, Comet and Asynchronous Servlets  ==
 
== Configuring Ajax, Comet and Asynchronous Servlets  ==
Line 108: Line 116:
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Websocket_Wizard Using the WebSocket Wizard]<br/>
 
[http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Websocket_Wizard Using the WebSocket Wizard]<br/>
 
[http://blogs.webtide.com/gregw/entry/asynchronous_restful_webapplication Asynchronous REST]<br/>  
 
[http://blogs.webtide.com/gregw/entry/asynchronous_restful_webapplication Asynchronous REST]<br/>  
[[Jetty/Feature/Stress Testing CometD|Stress Testing CometD]]  
+
[[Jetty/Feature/Stress Testing CometD|Stress Testing CometD]]<br/>
 +
[[Jetty/Feature/SPDY|Using SPDY]]<br/>
 +
[[Jetty/Feature/NPN|Configuring NPN]]<br/>
 +
[http://www.smartjava.org/content/how-use-spdy-jetty How to Use SPDY with Jetty (by Jos Dirksen at Smartjava.org)]
  
 
== Using Servlets and Filters  ==
 
== Using Servlets and Filters  ==
Line 118: Line 129:
 
== Security Topics  ==
 
== Security Topics  ==
  
 +
[http://wiki.eclipse.org/Jetty/Jetty_Security_Reports Jetty Security Reports]<br/>
 
[[Jetty/Feature/Realms|Security Realms]]<br/>  
 
[[Jetty/Feature/Realms|Security Realms]]<br/>  
 
[[Jetty/Tutorial/Realms|Configuring Security Realms]]<br/>  
 
[[Jetty/Tutorial/Realms|Configuring Security Realms]]<br/>  
Line 170: Line 182:
 
[[Jetty/Contributor|Contributing to Jetty]] – '''Master Doc'''<br/>
 
[[Jetty/Contributor|Contributing to Jetty]] – '''Master Doc'''<br/>
 
[[Jetty/Contributor/Coding_Standards|Jetty Coding Standards]]<br/>
 
[[Jetty/Contributor/Coding_Standards|Jetty Coding Standards]]<br/>
[[Jetty/Contributor/DevelopingWithGit|Developing with Git]]<br/>
 
 
[[Jetty/Contributor/Building|Building Jetty]]<br/>
 
[[Jetty/Contributor/Building|Building Jetty]]<br/>
 +
[[Jetty/Contributor_Release_Testing_Check_List|Release Testing Check List]]<br/>
 
[[Jetty/Contributor/Releasing|Releasing Jetty]]<br/>
 
[[Jetty/Contributor/Releasing|Releasing Jetty]]<br/>
 
[[Jetty/Contributor/Contributing_Patches|Contributing Patches]]
 
[[Jetty/Contributor/Contributing_Patches|Contributing Patches]]
Line 180: Line 192:
  
 
== Logging/Monitoring  ==
 
== Logging/Monitoring  ==
+
[[Jetty/Feature/Jetty_Logging|Jetty Logging]]<br/>
[[Jetty/Feature/Java-monitor|Java-monitor]]  
+
[[Jetty/Tutorial/RequestLog| Jetty Request Logs]]<br/>
 +
[[Jetty/Feature/Java-monitor|Java-monitor]]<br/>
 +
[[Jetty/Tutorial/Sifting_Logs_with_Logback|Sifting Logs with Logback and SLF4J]]<br/>
  
 
== Troubleshooting  ==
 
== Troubleshooting  ==
  
 +
[[Jetty/Troubleshooting|Troubleshooting: Big Problems, Logs and Warnings]]<br/>
 
[[Jetty/Howto/Use the Dump Feature|Using the Jetty Dump Feature]]<br/>  
 
[[Jetty/Howto/Use the Dump Feature|Using the Jetty Dump Feature]]<br/>  
 
[[Jetty/Howto/Deal with Locked Windows Files|Dealing with Locked Windows Files]]<br/>  
 
[[Jetty/Howto/Deal with Locked Windows Files|Dealing with Locked Windows Files]]<br/>  
[http://webtide.intalio.com/ Webtide Blog]–Jetty developers responding to user dilemmas and announcing new features  
+
[[Jetty/Zip_Exceptions_Reading_Jar_or_War_Files|Zip Exceptions Reading Jar or WAR Files]]<br/>
 +
[[Jetty/Howto/Prevent Memory Leaks| Memory Leaks]]<br/>
 +
[http://webtide.intalio.com/ Webtide Blog]–Jetty developers responding to user dilemmas and announcing new features
  
 
== Upgrading Jetty  ==
 
== Upgrading Jetty  ==

Revision as of 14:45, 23 April 2013



Welcome to the Jetty Documentation Wiki. Jetty is an open-source project providing an HTTP server, HTTP client, and javax.servlet container. This Jetty Wiki provides information about getting started with Jetty, basic configuration, specific features, optimization, security, JavaEE, monitoring, FAQs, help with troubleshooting, and more. It includes tutorials, howtos, videos, feature descriptions, and reference materials.

Contents

Jetty Documentation

Warning2.png
Jetty 9 Content Available on the Documentation Hub
Direct Link: http://www.eclipse.org/jetty/documentation


Also see the Jetty homepage!


Getting Started: Download, Install, Run

Getting Started with Jetty (video)
Download and Install Jetty
How to Run Jetty

Jetty HelloWorld Tutorial
Jetty and Maven HelloWorld Tutorial
Getting Starting with Jetty (6) (on www.itjungle.com)
Jetty Start.jar

Configuring Jetty

Configuring JettyMaster Doc
Configuring...

Embedding Jetty

Embedding Jetty
Jetty Embedded HelloWorld
Embedding Jetty (video)
Understanding Which JARS to Use

Optimizing Jetty

Configuring Garbage Collection
Configuring for High Load

Deploying Applications within Jetty

Using the Deployment Manager
Setting Deployment Bindings
Using Hot Deployment
Using the Context Provider
Deploying Web Applications
Using the WebApp Provider
Using the Overlay Deployer
Deploying Third Party Products
Expanded Webapp Deploy

Developing with Jetty

How to Develop with Jetty
Writing Jetty Handlers

Build/IDE Integration

Using Jetty with Maven

Using Jetty with Ant

Using IDEs

Using Jetty with Eclipse
Using Jetty with IntelliJ

Working with Eclipse

Developing Jetty in Eclipse
Using the Jetty WTP Plugin
Installing the Jetty WTP Plugin
Using the WTP Plugin with an External WebApp
Modifying the Context Path with the WTP Plugin
JettyOSGi SDK for Eclipse-PDE
EclipseRT Jetty StarterKit SDK

Configuring Ajax, Comet and Asynchronous Servlets

Continuations and Asynchronous Servlets
100 Continue and 102 Processing
WebSocket Servlet
Using WebSockets
Using the WebSocket Wizard
Asynchronous REST
Stress Testing CometD
Using SPDY
Configuring NPN
How to Use SPDY with Jetty (by Jos Dirksen at Smartjava.org)

Using Servlets and Filters

Servlets Bundled with Jetty
Quality of Service Filter
Cross Origin Filter

Security Topics

Jetty Security Reports
Security Realms
Configuring Security Realms
Java Authentication and Authorization Service (JAAS)
Configuring JAAS
JASPI
Secure Mode
Securing Passwords in Files or Code
How to enable and Disable SSL Cipher Suites in Jetty
How to Secure Stored Passwords in Jetty
How to Secure Termination of Jetty
How to Configure Spnego

General Reference

Jetty Architecture
Jetty Classloading
Jetty JARS and Dependencies
Start Options
Temporary Directories
Jetty and JEE6 Web Profile

Configuration Reference

jetty.xml Syntax–Jetty IOC Configuration
jetty.xml Usage–Using and Combining Jetty Configurations

Configuration Files

jetty.xml–Server configuration
jetty-web.xml–Web App configuration
jetty-env.xml–JNDI configuration
webdefault.xml–Pre-web.xml configuration
override-web.xml–Post-web.xml configuration

Javadoc and Source

Jetty 7 Latest JavaDoc
Jetty 7 Latest Source XRef

Jetty 8 Latest JavaDoc
Jetty 8 Latest Source XRef

Index of Generated Release Documents–API and XRef documentation for previous releases.

Contributing to Jetty

Contributing to JettyMaster Doc
Jetty Coding Standards
Building Jetty
Release Testing Check List
Releasing Jetty
Contributing Patches

Client

Asynchronous HTTP Client

Logging/Monitoring

Jetty Logging
Jetty Request Logs
Java-monitor
Sifting Logs with Logback and SLF4J

Troubleshooting

Troubleshooting: Big Problems, Logs and Warnings
Using the Jetty Dump Feature
Dealing with Locked Windows Files
Zip Exceptions Reading Jar or WAR Files
Memory Leaks
Webtide Blog–Jetty developers responding to user dilemmas and announcing new features

Upgrading Jetty

Porting to Jetty 6 from earlier versions of Jetty
Porting to Jetty 7
Porting to Jetty 7/Packages and Classes
Porting to Jetty 8
Porting from Tomcat
Jetty Version Comparison Table

Application Server Integrations

Apache Geronimo JEE
Using Jetty with Apache httpd
How to use Jetty with Apache, AJP, mod_jk, mod_proxy_balancer
Configuring Apache mod_proxy with Jetty
Using Jetty with AJP13
Configuring Jetty in JBoss
Remote Glassfish EJBs from Jetty
Jetty and Spring EJB3 (Pitchfork)
JBoss EJB3
ObjectWeb EasyBeans (aka JOnAS EJB3Container)

Clustering Technologies

JBoss Infinispan (from Redhat)
Gigaspaces
Terracotta
WADI
Session Clustering Using a Database
Session Clustering with Terracota
Session Clustering with MongoDB

Features Reference

SSL Connectors Reference
QoSFilter Reference
DoSFilter Reference

IoC and DI Frameworks

Jetty XML IOC
How to Configure Jetty with Spring
How to Configure Jetty with XBean

OSGi

Jetty on OSGi, RFC66
Jetty OSGi Powered Products
OSGi Tips
Jetty as the HTTP Service in Equinox
Jetty as the HTTP Service in Felix
Jetty as the HTTP Srevice in PAX
ProSyst mBedded Server Equinox Edition
Jetty in Spring Dynamic Modules
Jetty in JOnAS5

Web Frameworks

DWR
MyFaces
JSF Reference Implementation
Jakarta Slide
GWT
Jetspeed2
ICEfaces

Other

Atomikos Transaction Manager
Java Open Transaction Manager (JOTM)
Bitronix Transaction Manager
ActiveMQ
Binding JAX-WS 2.x Endpoints to Jetty Contexts
JVM NIO Bug Handling
Rewrite Module


FAQ