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

Tomcat 8.x

1. 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.txt


4.  重启Tomat,可看到之前的提示消息已经没有了,重新注释掉步骤1中的代码,完成修改。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值