1. 程式人生 > 其它 >tomcat執行時報錯.Digester.fatalError Parse Fatal org.xml.sax.SAXParseException…

tomcat執行時報錯.Digester.fatalError Parse Fatal org.xml.sax.SAXParseException…

技術標籤:筆記tomcat

在使用tomcat時,報出如下錯誤,卻又不妨礙功能正常使用

org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at line 42 column 37: 與元素型別 "user" 相關聯的 "password" 屬性值不能包含 '<' 字元。
org.xml.sax.SAXParseException; lineNumber: 42; columnNumber: 37; 與元素型別 "user" 相關聯的 "password" 屬性值不能包含 '<' 字元。

檢視這句話org.xml.sax.SAXParseException,表示tomcat配置檔案的出錯,讓我們檢視一下
開啟tomcat安裝目錄,查詢與user有關的配置.xml檔案,發現如下:
在這裡插入圖片描述
開啟此文件,果然在第42行發現了錯誤
在這裡插入圖片描述
提示資訊:The value of attribute "password" associated with an element type "user" must not contain the '<' character.
將尖括號去掉,儲存執行,發現錯誤消除