On 29/10/2021 10:22, Jochen Wiedmann wrote:
Hi,

I am an occasional contributor to the Tomcat Eclipse Plugin [1]. One
nice thing, that the plugin does is, that it creates a Context.xml for
you, so that you can have the webapp in-place while
developing. Right now, that Context.xml would look like this:

<Context path="/iaas"
       reloadable="true"
          docBase="C:\git\wx-iaas-vaadin-ui\target\iaas-vdn-webapp"
            workDir="C:\git\wx-iaas-vaadin-ui\target\iaas-vdn-webapp-work" />

Well, with recent Tomcat versions, that is no longer correct, because
the path attribute is rejected. A message appears in the log file:

     The path attribute with value [/iaas] in deployment descriptor
     [C:\opt\apache-tomcat-9.0.54\conf\Catalina\localhost\iaas.xml] has
been ignored

Not a real problem, but something, that I would like to see changed.
Question: Can you tell me (as exactly as possible), which Tomcat
versions want that attribute?

Have you tried reading the documentation?

Going back to at least Tomcat 5.5 (2004) the documentation for the path attribute states:

"The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context file or the docBase."


Right now, my plan would be:

   Keep the attribute for Tomcat < 9. (It is required.)

Nope. It is not required for any current (and at least the 3 previous EOL'd versions) and will be ignored.

   Keep the attribute for Tomcat 9 (It may be required. If not, no harm done.)

Unnecessary - it will be ignored.

   Remove the attribute for Tomcat 10.

This is the correct approach for all current versions (and the EOL'd versions back to at least 5.5.x)

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to