日期:2014-05-20  浏览次数:20682 次

ibatis错误 谁帮我看下 什么原因
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chgReceivableBillDao' defined in file [D:\MyWork_GDZJ\prolims-aglaia\prolims-std-charge\target\classes\prolims-charge-dao.xml]: Cannot resolve reference to bean 'sqlMapClientCharge' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClientCharge' defined in file [D:\MyWork_GDZJ\prolims-aglaia\prolims-std-charge\target\classes\prolims-charge-ds.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [charge-sqlmap-config.xml]; nested exception is 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: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClientCharge' defined in file [D:\MyWork_GDZJ\prolims-aglaia\prolims-std-charge\target\classes\prolims-charge-ds.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [charge-sqlmap-config.xml]; nested exception is 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: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.

Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [charge-sqlmap-config.xml]; nested exception is 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: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.

Caused by: 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: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:55)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:339)
... 48 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)