解决tomcat启动警告"至少有一个JAR被扫描用于TLD但尚未包含TLD"
编辑apache-tomcat-8.5.78-windows-x64\apache-tomcat-8.5.78\conf\logging.properties
新增org.apache.jasper.servlet.TldScanner.level = FINE
启动项目查看日志
02-Dec-2022 10:31:23.255 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在JAR[file:/C:/UsersWeb_exploded/WEB-INF/lib/javamelody-core-1.87.0.jar]中找到了TLD文件。
02-Dec-2022 10:31:23.271 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在JAR[file:/C:/Users/Web_exploded/WEB-INF/lib/taglibs-i18n.jar]中找到了TLD文件。
02-Dec-2022 10:31:23.302 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在JAR[file:/C:/Users/Web_exploded/WEB-INF/lib/standard.jar]中找到了TLD文件。
02-Dec-2022 10:31:23.317 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在JAR[file:/C:/Users/Web_exploded/WEB-INF/lib/org.springframework.webmvc-3.1.2.RELEASE.jar]中找到了TLD文件。
02-Dec-2022 10:27:24.452 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在file:/C:/Users/Web_exploded/WEB-INF/lib/html2thumb-8.25.jar中找不到TLD文件。考虑将JAR添加到CATALINA_BASE/conf/CATALINA.properties文件中的tomcat.util.scan.StandardJarScanFilter.jarsToSkip属性。
02-Dec-2022 10:27:24.453 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在file:/C:/Users//exploded/WEB-INF/lib/servlet-api.jar中找不到TLD文件。考虑将JAR添加到CATALINA_BASE/conf/CATALINA.properties文件中的tomcat.util.scan.StandardJarScanFilter.jarsToSkip属性。
02-Dec-2022 10:27:24.453 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在file:/C:/Users/out/artifacts/Web_exploded/WEB-INF/lib/tomcat-i18n-ja.jar中找不到TLD文件。考虑将JAR添加到CATALINA_BASE/conf/CATALINA.properties文件中的tomcat.util.scan.StandardJarScanFilter.jarsToSkip属性。
02-Dec-2022 10:27:24.454 详细 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan 在file:/C:/Users/sWeb_exploded/WEB-INF/lib/allmedia-diff.jar中找不到TLD文件。考虑将JAR添加到CATALINA_BASE/conf/CATALINA.properties文件中的tomcat.util.scan.StandardJarScanFilter.jarsToSkip属性。
编辑apache-tomcat-8.5.78-windows-x64\apache-tomcat-8.5.78\conf\catalina.properties
提取上面日志中找不到TLD文件的jar(不包括找到了TLD文件的jar)
找到tomcat.util.scan.StandardJarScanFilter.jarsToSkip=html2thumb-8.25.jar,servlet-api.jar,tomcat-i18n-ja.jar,allmedia-diff.jar
posted on 2022-12-02 11:02 bangdikka 阅读(1921) 评论(0) 编辑 收藏 举报