当前位置 : 主页 > 编程语言 > java >

日志记录 – 如何修复JSP编译器警告:一个JAR扫描了TLD,但不包含TLD?

来源:互联网 收集:自由互联 发布时间:2021-06-25
当启动应用程序或通过ant编译JSP时,Tomcat 7 Jasper抱怨多余的或放错的JAR文件。我收到了消息 **compile-jsp:** [jasper] Jul 31, 2012 7:15:15 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar [jasper] INFO
当启动应用程序或通过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编译时间?

如何实现更好的输出?

对于Tomcat 8,我不得不将以下行添加到tomcat / conf / logging.properties中,供Tomcat扫描的jar显示在日志中:

org.apache.jasper.servlet.TldScanner.level = FINE
网友评论