【Tomcat版本】7.0.42
【问题描述】Tomcat启动后,访问动态页面后提示“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”
【问题原因猜测】Tomcat7/Servlet3.0 新增特性“可插性支持”实现的原理应该是自动扫描jar,当jar中并不包含相关组件时会打印该信息
【问题处理】从提示信息来看,不处理也可以,但对于有洁癖的、追求完美的程序员而言这个是不允许的。具体处理步骤:
1.调整Tomcat对应类的log级别
修改${tomcat}/conf/log4j.properties
##解除类org.apache.jasper.compiler.TldLocationsCache的log org.apache.jasper.compiler.TldLocationsCache.level = FINE
2.观察Tomcat日志打印信息
步骤1执行完后,重启Tomcat,观察Tomcat日志,会在日志中发现类似如下打印信息:
九月 09, 2013 10:55:37 上午 org.apache.jasper.compiler.TldLocationsCache tldScanJar 详细: No TLD files were found in [file:/E:/devspace/xxt_login/WEB-INF/lib/json-lib-2.3-jdk15.jar]. Consider adding the JAR to the tomcat.util.scan.DefaultJarScanner.jarsToSkip or org.apache.catalina.startup.TldConfig.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file. 九月 09, 2013 10:55:37 上午 org.apache.jasper.compiler.TldLocationsCache tldScanJar 详细: No TLD files were found in [file:/E:/devspace/xxt_login/WEB-INF/lib/poi-3.8.jar]. Consider adding the JAR to the tomcat.util.scan.DefaultJarScanner.jarsToSkip or org.apache.catalina.startup.TldConfig.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
3.调整${tomcat}/conf/catalina.properties,将提示的jar添加到不扫描清单中
tomcat.util.scan.DefaultJarScanner.jarsToSkip=\ bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\ annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,\ catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,\ jasper.jar,jasper-el.jar,ecj-*.jar,\ tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,\ tomcat-jni.jar,tomcat-spdy.jar,\ tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,\ tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,\ tomcat-jdbc.jar,\ tools.jar,\ commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,\ commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,\ commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,\ commons-math*.jar,commons-pool*.jar,\ jstl.jar,\ geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,\ ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,\ jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,\ xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,\ junit.jar,junit-*.jar,ant-launcher.jar,\ json-lib-*.jar,poi-*.jar
【注意】
1.如果使用eclipse server插件、Sysdeo tomcat插件启动Tomcat,此配合可能无效
2.步骤1调整完后,最好清除下以下两个文件夹${tomcat}/conf/Catalina ${tomcat}/work/Catalina
3.尽量使用*号实现模式匹配,以避免因jar版本升级带来的重复修改代价
【参考资料】
Servlet3.0新特性
http://blog.csdn.net/aking21alinjuju/article/details/5583820
相关推荐
例如,可能会出现 "At least one JAR was scanned for TLDs" 的错误信息。这是因为页面中含有注释 `<!-- -->` 导致的,可以将其删除以解决问题。 配置 UEditor JSP 版本并实现文件上传功能需要按照以上步骤进行,...
Look Scanned 是一款开源软件,主要功能是将PDF文件转换成具有扫描件视觉效果的文件。这款软件的界面和操作流程设计得相对简洁,用户能够非常轻松地实现文件的转换处理。 用户首先需要点击网站上的开始扫描按钮,...
### 相控阵天线(Electronically Scanned Arrays)详解 #### 一、引言与历史背景 相控阵天线(Electronically Scanned Arrays,ESA),是一种能够通过电子方式实现波束扫描和定位的天线系统,无需机械转动即可完成...
When true, the signature is scanned for at the EntryPoint only. ;Else it is scanned throughout the file. ;A '*' in the results of PEiD signifies that the external database was used for scanning the ...
利用电磁波的相干原理,通过计算机控制输往天线各阵元电流相位的变化来改变波束的方向,同样可进行扫描,称为电扫描。天线阵,根据扫描情况可分为相扫、频扫、相/相扫、相/频扫、机/相扫、机/频扫、有限扫等多种体制...
Scanned Documents.pdf
QRCode+core-Jar是与二维码相关的Java库,主要用于生成和读取二维码(QR Code)。在Java编程中,处理二维码的库通常是开发者用于快速实现二维码功能的工具,比如在移动应用、网页或系统集成中。QRCode+core-Jar很...
volume-scanned.ppt
- 通过实际案例,读者将学习如何将理论知识应用于解决实际问题,例如设计和优化不同类型的ESA系统,或者比较不同扫描策略的优劣。 7. **MATLAB工具箱**: - 可能涉及Signal Processing Toolbox和Control System ...
Because a clustered index determines the sequence in which rows are stored in a table, there can only be one clustered index for a table at a time. Performance Considerations Keeping your clustered ...
There was no way to prevent non-repeatable reads while not preventing phantoms. By default, SQL Server 2000 operates at an isolation level of READ COMMITTED. To make use of either more or less strict...
5. **处理异常**:在使用ZXing过程中,可能遇到各种异常,如无法识别的条形码、相机权限问题等,需要正确处理这些异常以保证程序的稳定运行。 **示例代码片段:** ```java import com.google.zxing.*; import ...
总的来说,YOLOv8系列在扫描文档物体检测中的应用展示了深度学习在解决特定任务上的强大潜力。通过对模型的持续优化和针对性调整,我们可以期待YOLOv8在处理扫描文档时带来更加准确、高效的结果,进一步推动自动化...
When true, the signature is scanned for at the EntryPoint only. ;Else it is scanned throughout the file. ;A '*' in the results of PEiD signifies that the external database was used for scanning the ...
1.个人打印机:为家庭或小型办公提供打印解决方案。 2.办公打印机:为中大型企业提供高效、稳定的打印服务。 3.多功能一体机:集打印、扫描、复印、传真等多功能于一体,满足各种办公需求。 4.打印相关耗材:提供...
3. Support for multipacket TSIG signatures for transfers was added, and incorrectly parsed TSIG key secrets without quotes were fixed. 4. autoconf checks for extended instruction sets were removed ...
由于提供的文件信息中只有标题、描述和标签,而没有具体内容,因此无法生成相关知识点。通常,为了创建详尽的知识点,需要文件的正文内容来提取关键信息和概念。但是,基于文件的标题和描述,我们可以推测这是一份...
tftp 4.5.1版本,平台:windows 很小的TFTP工具,供大家下载! The download is provided ... The download was scanned for viruses by our system. We also recommend you to check the files before installation.