I run a Java-based CMS which places cached images in the WEB-INF folder, specifically in
/WEB-INF/imagecache/
. Unfortunately, this directory gets extremely large with lots of nested paths, and Tomcat restarts become excruciatingly slow - setting the log level for org.apache.jasper.servlet.TldScanner.level
to FINE shows why, there is a ton of messages like this:
16-Mar-2022 13:50:56.109 FINE [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanResourcePaths No TLD files were found in resource path [/WEB-INF/imagecache/<snip>/].
Is there any way to completely ban the TldScanner from specific directories?