tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54741] Add org.apache.catalina.startup.Tomcat#addWebapp(String, URL) method
Date Mon, 03 Dec 2018 15:42:53 GMT

--- Comment #2 from Mark Thomas <> ---
The JAR URL format does not support the concept of nested archives. This means
that Tomcat has already had to implement a special URL handling scheme to
support referencing a resource inside a JAR inside a WAR.

The special WAR URL handling went through several iterations as we worked to
avoid various conflicts until we ended up with the current scheme.

It would not be possible to run a WAR from within a JAR file without completely
replacing the JREs jar URL handling (and adding support for nesting) so URLs of
the form "jar:war:jar:..." were supported.  Based on past experience with
"war:...", that approach would be extremely fragile and very likely to conflict
with other tools.

To be fair, I don't think this enhancement request is asking for the above.
However, I wanted to set out the difficulties of a generic "deploy a WAR from
within a JAR" feature.

The specific request to deploy a WAR in unpacked mode from a JAR should be less
complicated. I'll take a look. Assuming deployment in unpacked mode is
possible, an attempt to deploy a WAR from a JAR in packed mode will result in
an error.

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message