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