The string "-- " is
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: 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. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: com.ibatis.common.exception.NestedRuntimeException: 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. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53) at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:78) ... 81 more Caused by: com.ibatis.common.exception.NestedRuntimeException: 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. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:114) at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:75) at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:93) at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:63) at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51) ... 82 more Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. Caused by: org.xml.sax.SAXParseException: The string "-- " is not permitted within comments. at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53) at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser.parse(SqlMapParser.java:45) at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$11.process(SqlMapConfigParser.java:347) at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:112) ... 86 more
The string "--" is not permitted within comments ibatis 在jdk-1_5_0_04中能正常,而在jdk1.6.0_03会错删除注释是一种方法 另,原因已找到<!- 单数个中文>形式的,单数个中文后以"->"结束会出错