From 76f4d7025a4d45c7af545dc4adfa14d9bdf61eec Mon Sep 17 00:00:00 2001
From: markt
You may deploy multiple versions of a web application with the same context
- path at the same time. The rules used to match requests to a context version
- are as follows:
+ You may deploy multiple versions of a web application with the same
+ context path at the same time. The rules used to match requests to a
+ context version are as follows:
There is a close relationship between the context name,
- context path, context version and the base file
- name used for the WAR and/or directory that contains the web application.
- When no version is specified, the rules are:
+ When autoDeploy or deployOnStartup is used then there is a close
+ relationship between the context name, context path,
+ context version and the base file name used for the WAR
+ and/or directory that contains the web application when the WAR or directory
+ is located in the Host's appBase. When no version is specified, the rules
+ are:
foo##002.war is
treated as an earlier version than foo##011.war.
If you want to deploy a WAR file or a directory using a context path that + is not related to the base file name then one of the following options must + be used to prevent double-deployment: +
It is NOT recommended to place <Context> elements directly in the server.xml file. This is because it makes modifying the Context configuration more invasive since the main @@ -171,7 +188,13 @@ Automatic Application Deployment and User Web Applications for more information.
- + +To define multiple Contexts that use a single WAR file or + directory, use one of the options described above for creating a + Context that has a path that is not related to the base file + name and create multiple Context definitions. +
+