gpt4 book ai didi

logging - 如何修复JSP编译器警告: one JAR was scanned for TLDs yet contained no TLDs?

转载 作者:行者123 更新时间:2023-12-03 05:53:14 24 4
gpt4 key购买 nike

当启动应用程序或通过 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.5。在catalina.properties里面,位于/conf目录下设置:

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\*.jar

或者进入位于 Tomcat 的/conf 目录中的 context.xml 并添加:

<JarScanner scanClassPath="false"/>

关于logging - 如何修复JSP编译器警告: one JAR was scanned for TLDs yet contained no TLDs?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14375673/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com