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 sca
时间: 2024-03-18 10:44:54 浏览: 220
这是一个关于JSP的警告信息,它表示在扫描JAR文件中至少有一个JAR文件被扫描到,但其中没有包含任何TLD文件。TLD是指Tag Library Descriptor,是一种XML文件,用于描述JSP标签库的属性、方法和标签。这个警告信息意味着在扫描JAR文件时,扫描到的JAR文件中没有包含任何TLD文件,因此在扫描过程中跳过了这些不需要的JAR文件。如果您想查看完整的JAR文件列表,可以启用该日志记录器的调试日志。
相关问题
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 sca
nning can improve startup time and reduce clutter.
这段话是指在扫描TLD文件时,至少有一个JAR包被扫描了,但是其中没有包含任何TLD文件。如果需要查看完整的被扫描但没有TLD文件的JAR包列表,可以启用调试日志记录。跳过不需要扫描的JAR包可以提高启动时间并减少混乱。
解决At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger ...
这个问题通常是由于在Web应用程序中存在JAR文件,但是这些JAR文件中没有TLD文件引起的。TLD文件是用于定义标记库的描述符文件,因此如果JAR中没有TLD文件,则会引发此问题。要解决此问题,您可以采取以下步骤之一:
1. 在web.xml文件中添加下面的内容:
```
<context-param>
<param-name>org.apache.jasper.compiler.disablejsr199</param-name>
<param-value>true</param-value>
</context-param>
```
2. 如果您使用的是Maven,请确保您的依赖项中包含以下依赖项之一:
```
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
```
或者
```
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
```
这些依赖项将确保存在必需的TLD文件。
3. 如果您使用的是Gradle,请确保您的依赖项中包含以下依赖项之一:
```
compile group: 'javax.servlet', name: 'jstl', version: '1.2'
```
或者
```
compile group: 'taglibs', name: 'standard', version: '1.1.2'
```
这些依赖项将确保存在必需的TLD文件。
通过以上几种方式,您应该能够解决这个问题。如果问题仍然存在,请尝试启用调试日志记录以获取更多信息。
阅读全文