您的位置:首页 > 大数据 > 人工智能

At least one JAR was scanned for TLDs yet contained no TLDs

2016-12-23 12:16 579 查看
Tomcat 8.x1. conf/logging.properties 修改:
# To see debug messages in TldLocationsCache, uncomment the following line:
org.apache.jasper.compiler.TldLocationsCache.level = FINE
2. 重启Tomcat,启动成功后,打开日志文件catalina.out,看到很多行如下的日志:No TLD files were found in.....xxx.jar
3. 把所有2中出现的jar加到排除扫描的列表中,打开catalina.properties, 添加进去:
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\
Linux下可使用如下命令把相关的Jar导出到一个文件中:egrep "No TLD files were found in \[file:[^\]+\]" catalina.out -o | egrep "[^]/]+.jar" -o | sort | uniq | sed -e 's/.jar/.jar,\\/g' > skips.txt4.  重启Tomat,可看到之前的提示消息已经没有了,重新注释掉步骤1中的代码,完成修改。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Tomcat
相关文章推荐