某一天,突然发现正在开发的Web项目无法访问了。看log,发现入口类不加载了。而Tomcat是正常启动的。
有这么一段提示:
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.……
随之网上找了各种办法,逐一尝试均告失败……
折腾了一整天,整个人快要崩溃了。
随即通过git查看近期所有代码修改的差异,终于发现是前一天脑袋一热,pom中多加了这么一段依赖:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
<scope>runtime</scope>
</dependency>
删除之,再次启动tomcat,泪奔啊。终于OK了!