Project: Tomcat
Bug 44380 TldConfig / Scan of URL that are not files
Reported: 2008-02-08 05:29:21 | Status: resolved fixed

The TldConfig class (org.apache.catalina.startup) is asking ClassLoader and all parent ClassLoader in order to get the URLs and then assume that the URLs are using "file" protocol. But when Tomcat is embedded, sometimes the URL are not always using "file" protocol and then new File() will fail. The given patch is to skip the URLs that are not using file protocol (that avoids ugly NPE in the "new File(urls[i].toURI());" call

Files changed in fix:
java/org/apache/catalina/startup/TldConfig.java