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 d


 

问题描述

  在tomcat启动时打印出一句error日志,内容为:

24-Jul-2017 11:28:33.486 信息 [RMI TCP Connection(4)-127.0.0.1] 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.

问题原因

  这样的问题是你的页面中含有<!---->的代码,由于tomcat是需要解析tld的,所以可能会抛出异常警告,但不会影响程序启动! 

解决方案

  第一种:严格遵守java规范,修改对象的属性名称,要求不包含java关键字; 
  第二种:修改EL表达式,例如"${owner.new}"可以修改为"${owner['new']}"; 
  第三种:修改tomcat属性,忽略对EL表达式的关键字检查。修改$CATALINA_BASE/conf/catalina.properties文件,添加org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true选项。

 

 

问题转载于: http://blog.csdn.net/yangsen251024/article/details/21952613


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM