tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53783] Static resources and jsp files under WEB-INF/lib/*.jar!/META-INF/resources are not found
Date Mon, 27 Aug 2012 14:07:59 GMT

Konstantin Kolinko <> changed:

           What    |Removed                     |Added
                 OS|                            |All

--- Comment #2 from Konstantin Kolinko <> ---
Does specification allow JAR files that do not have directory entries?

1. The "jar" tool always creates entries for directories.
There are no options to omit them,

2. The spec says "in the META-INF/resources directory of a JAR file".
There is no such "directory" in this resource.jar.

That said, I am OK with the patch.

For stream access to a jar file (o.a.t.util.scan.UrlJar) the entryExists()
method does such iteration internally, so proposed patch would not slow it

For random access to a jar file (o.a.t.util.scan.FileUrlJar) the ZIP archive
index is read when JAR file is opened and iteration over the index
(JarFile.entries()) should not waste much time.

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