电竞比分网-中国电竞赛事及体育赛事平台

分享

Cause: org.xml.sax.SAXParseException: The string "--" is not permitted within comments.

 獨醭湉睚 2012-02-03
tomcat報如下錯誤:
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. 
Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. 
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. 
Cause: org.xml.sax.SAXParseException: The string "--" is not permitted within comments.

網(wǎng)上都說是下面的辦法解決:
Caused by: org.xml.sax.SAXParseException: The string "--" is not permitted within comments.
這個異常很明顯是 你xml文件中注釋的問題

sqlmap配置文件中。注釋只能是<!-- -->
在這其中不能再有--之類的東西。。。如:<!-- 某某--注釋 -->這種情況。sqlmap加載配置時,會報錯 。

最后發(fā)現(xiàn)是jdk版本的問題,我們的工程只能用jdk1.5
結(jié)果別人裝的時候,jdk1.6沒有卸載,就按照了1.5,查看jdk版本的時候還是1.6.
把1.6卸載就好了。

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多