报错: **[RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 问题解决

报错: [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 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.

首先如果使用idea的maven模式,造成以上报警的原因是,项目发布时没有将maven加入的jar依赖发布到当前的项目的target目录中(注意没发布并不影响idea调用tomcat应用服务器发布当前webapp,不去理会也可以)。

发现报这个错误后可以通打开tomcat/conf/logging.properties文件,在最后一行加入

org.apache.jasper.servlet.TldScanner.level = FINE

这样tomcat重启后将报详细的错误,此时在查看错误提示就出现好多下面这种形式的:

07-Mar-2019 20:42:37.841 详细 [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.
TldScanner$TldScannerCallback.scan No TLD files were found in 
[file:/D:/java/IdeaProjects/lovemall/target/lovemall/WEB-INF/lib/ognl-3.0.21.jar]. 
Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip 
property in CATALINA_BASE/conf/catalina.properties file.

通过观察可以看出来提示的就是ognl-3.0.21.jar没有扫描到TLD 文件。

看到这里就好解决了,经过查阅资料也就只能解决到这里。

猜你喜欢

转载自blog.csdn.net/u011930054/article/details/88321248