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. 2023-05-18 22:51:08,140 ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile. java.lang.reflect.InvocationTargetException
时间: 2023-07-14 08:11:54 浏览: 230
yolov8系列--Object Detection Model for Scanned Documents.zip
这个错误信息是由于在扫描 JAR 文件中的 TLD(Tag Library Descriptor)文件时,找不到任何 TLD 文件而引起的。这个问题不会影响应用程序的运行,但可能会导致启动和编译时间变慢。
要解决这个问题,可以在 log4j.properties 文件中添加以下记录器:
```
log4j.logger.org.apache.jasper.compiler.TldLocationsCache=warn
```
这将禁止 log4j 在扫描 JAR 文件时输出警告信息。如果需要查看详细的扫描结果,可以将日志级别设置为 debug,例如:
```
log4j.logger.org.apache.jasper.compiler.TldLocationsCache=debug
```
这将在日志文件中输出详细的扫描结果,包括扫描到的 JAR 文件和 TLD 文件。
阅读全文