https://bz.apache.org/bugzilla/show_bug.cgi?id=68919

--- Comment #7 from Konstantin Kolinko <knst.koli...@gmail.com> ---
Some notes from me:

1. If a web application has been stopped (or failed to start), its mappings are
absent from the org.apache.catalina.mapper.Mapper.

That is the key point here. Period.


2. Falling back to the ROOT application is "well known".

E.g. it was used in Tomcat 5.5:
https://svn.apache.org/viewvc/tomcat/archive/tc5.5.x/trunk/container/webapps/ROOT/

It is a ROOT web application and it has an "admin" subdirectory.
It is used for the case when the "admin" web application has not been
installed.


3. Nowadays it is also possible to use the "Parallel deployment" feature to
install several versions of a web application in parallel.

https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Parallel_deployment

This works with the ROOT application itself as well. E.g. if "ROOT" is the
fallback webapp, and your "productive" webapp is named "ROOT##2024-05-23" and
fails to start, a request should be served by the "ROOT" one.

Quote, from config/context.html:
"String comparisons are used to determine version order. If version is not
specified, it is treated as the empty string. Therefore, foo.war will be
treated as an earlier version than foo##11.war"

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to