tomcat執行時報錯.Digester.fatalError Parse Fatal org.xml.sax.SAXParseException…
阿新 • • 發佈:2021-01-11
在使用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.
將尖括號去掉,儲存執行,發現錯誤消除