When starting the application or compiling JSP via ant, Tomcat 7 Jasper complains about superfluous or misplaced JAR file. I got below message
**compile-jsp:**
[jasper] Jul 31, 2012 7:15:15 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar
[jasper] INFO: 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 but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
how to Skipping unneeded JARs during scanning can improve startup time and JSP compilation time in tomcat?
how to enable better output?
Uncomment this line (in
/conf/logging.properties
)Work's for me in tomcat 7.0.53!
For Tomcat 8, I had to add the following line to
tomcat/conf/logging.properties
for the jars scanned by Tomcat to show up in the logs:Tomcat 8.5. Inside catalina.properties, located in the /conf directory set:
Or go into context.xml, located in Tomcat's /conf directory and add:
For Tomcat 8, I had to add the following line to catalina.properties for preventing jars scanned by Tomcat: