On 14/11/2024 20:08, Simon Arame wrote:
Hi, simple question to confirm a doubt about
https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Naming
the first paragraph states
When autoDeploy or deployOnStartup operations are performed by a Host,
the name and context path of the web application are derived from the
name(s) of the file(s) that define(s) the web application. Consequently,
the context path *may not* be defined in a META-INF/context.xml embedded in
the application
Does this means that if an application defines a META-INF/context.xml file,
it can not have the `path` attribute ?
Yes. See the description of the path attribute on the same page.
Otherwise what would be the cases in which it is ok to have a
META-INF/context.xml file inside an application ?
When you want to define any one of the many other attributes that may be
configured for a Context element.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org