Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Jetty/Howto/Deploy Web Applications"

< Jetty‎ | Howto
Line 1: Line 1:
 
{{Jetty Howto  
 
{{Jetty Howto  
| introduction = Jetty can deploy web applications:
+
| introduction = Jetty can deploy web applications as war files (packed or unpacked), as provided or with overridden configuration, with static or hot deployment.
* as war files (packed or unpacked)
+
* as configured war files
+
* as customized contexts
+
 
| steps =
 
| steps =
 
=== Webapps Deployment ===
 
=== Webapps Deployment ===
 +
The $JETTY_HOME/webapps directory is scanned at startup for webapplications to deploy:
 +
* $JETTY_HOME/webapps/foo.war will be deployed as a webapp at context /foo
 +
* $JETTY_HOME/webapps/foo/ will be deployed at context /foo. If the directory has a WEB-INF subdirectory, it will be treated as servlet webapp, otherwise it will served only as static content.
 +
* If both a foo.war and a foo/ directory exists, then the one with the most recent last-modified date is used.
 +
* If the webapp is called root.war or the directory is called root/ then it will be deployed at the / context.
  
 
=== Contexts Deployment ===
 
=== Contexts Deployment ===

Revision as of 21:14, 4 February 2010



Introduction

Jetty can deploy web applications as war files (packed or unpacked), as provided or with overridden configuration, with static or hot deployment.


Steps

Webapps Deployment

The $JETTY_HOME/webapps directory is scanned at startup for webapplications to deploy:

  • $JETTY_HOME/webapps/foo.war will be deployed as a webapp at context /foo
  • $JETTY_HOME/webapps/foo/ will be deployed at context /foo. If the directory has a WEB-INF subdirectory, it will be treated as servlet webapp, otherwise it will served only as static content.
  • If both a foo.war and a foo/ directory exists, then the one with the most recent last-modified date is used.
  • If the webapp is called root.war or the directory is called root/ then it will be deployed at the / context.

Contexts Deployment

Back to the top