You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/10/27 18:08:08 UTC
[Bug 57153] New: StandardJarScanner only searches WEB_INF/lib &
classes rather than full classpath
https://issues.apache.org/bugzilla/show_bug.cgi?id=57153
Bug ID: 57153
Summary: StandardJarScanner only searches WEB_INF/lib & classes
rather than full classpath
Product: Tomcat 8
Version: 8.0.14
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Util
Assignee: dev@tomcat.apache.org
Reporter: vmware.tester42@gmail.com
The StandardJarScanner.scan(JarScanType, ServletContext, JarScannerCallback)
method only searches the WEB-INF/lib and WEB-INF/classes directories for JARs
in the webapp's classloader. It then moves on to the parent classloaders and
searches their full classpaths.
However, there are situations where the classpath may be configured directly on
the classloader rather than by putting JARs into the WEB-INF/lib and in these
situations we actually want to search the full classpath of the webapp
classloader.
For example:
* When pre-compiling JSPs (using JSPC) within a source tree. JARs containing
TLDs can be specified as dependencies and passed in the classpath to JSPC
before the WAR (and hence the WEB-INF/lib directory) has been assembled.
* When running a webapp from within Eclipse using the Tomcat plug-in (which
uses its own classloader, DevLoader, to set-up the classpath rather than
relying on JARs being in the WEB-INF/lib directory).
Suggest that if WEB-INF/lib is empty then StandardJarScanner should scan JARs
configured in the webapp's class loader first, before moving up the class
loader hierarchy.
Not sure about Tomcat 7, but this is certainly a change from Tomcat 6 where
this was all possible.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57153] StandardJarScanner only searches WEB_INF/lib & classes
rather than full classpath
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57153
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Fixed in 8.0.x and will be included in 8.0.15 onwards.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org