当启动应用程序或通过Ant编译JSP时,Tomcat 7 Jasper 抱怨存在不必要或错放的JAR文件。我收到以下信息:
**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.
如何在扫描期间跳过不必要的JAR文件以提高Tomcat启动时间和JSP编译时间?
如何启用更好的输出?
${catalina.home}/conf/logging.properties
的文件并将org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level
设置为FINE
,重新启动Tomcat,然后发布输出内容?Tomcat并未抱怨有多余的JAR包,但是关于缺少TLD定义的问题,调整日志级别会显示更多细节(它将告诉你Tomcat正在查找缺少的TLD,并提供建议来解决你的问题)。 - ThanksForAllTheFish