// Names of JARs that are known not to contain any TLDs
private static Set<String> noTldJars = null;
+ // Flag that indicates that an INFO level message has been provided that
+ // there are JARs that could be skipped
+ private static volatile boolean showTldScanWarning = true;
+
/**
* The mapping of the 'global' tag library URI to the location (resource
* path) of the TLD associated with that tag library. The location is
}
if (!foundTld) {
- log.info(Localizer.getMessage("jsp.tldCache.noTldInJar",
- resourcePath));
+ if (log.isDebugEnabled()) {
+ log.debug(Localizer.getMessage("jsp.tldCache.noTldInJar",
+ resourcePath));
+ } else if (showTldScanWarning) {
+ // Not entirely thread-safe but a few duplicate log messages are
+ // not a huge issue
+ showTldScanWarning = true;
+ log.info(Localizer.getMessage("jsp.tldCache.noTldSummary"));
+ }
}
}
xmlParser.skipBomFail=Failed to skip BOM when parsing XML input stream
jsp.tldCache.noTldInJar=No TLD files were found in [{0}]. Consider adding the JAR to to the tomcat.util.scan.DefaultJarScanner.jarsToSkip in CATALINA_BASE/catalina.properties
+jsp.tldCache.noTldSummary=At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned where no TLDs were found. Skipping JAR scanning can improve startup time and JSP compilation time.
\ No newline at end of file
</fix>
</changelog>
</subsection>
+ <subsection name="Jasper">
+ <changelog>
+ <update>
+ Change JAR scanning log messages where no TLDs are found to DEBUG level
+ and replace the multiple messages with a single INFO level message that
+ indicates that at least one JAR was scanned needlessly and how to obtain
+ more info. (markt)
+ </update>
+ </changelog>
+ </subsection>
<subsection name="Web applications">
<changelog>
<fix>