如何修复 JSP 编译器警告:扫描了一个 JAR 以查找 TLD 但不包含任何 TLD? [英] How to fix JSP compiler warning: one JAR was scanned for TLDs yet contained no TLDs?

查看:44
本文介绍了如何修复 JSP 编译器警告:扫描了一个 JAR 以查找 TLD 但不包含任何 TLD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在启动应用程序或通过 ant 编译 JSP 时,Tomcat 7 Jasper 会抱怨 JAR 文件多余或错位.我收到以下消息

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. 

如何在扫描过程中跳过不需要的 JAR 可以提高 tomcat 中的启动时间和 JSP 编译时间?

how to Skipping unneeded JARs during scanning can improve startup time and JSP compilation time in tomcat?

如何实现更好的输出?

推荐答案

Tomcat 8.5.在 catalina.properties 中,位于/conf 目录集中:

Tomcat 8.5. Inside catalina.properties, located in the /conf directory set:

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

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

Or go into context.xml, located in Tomcat's /conf directory and add:

<JarScanner scanClassPath="false"/>

这篇关于如何修复 JSP 编译器警告:扫描了一个 JAR 以查找 TLD 但不包含任何 TLD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆