com.ibatis.sqlmap.client.SqlMapException: There is already a statement named search in this SqlMap.
2014-08-25 13:54
609 查看
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/select'. Cause: com.ibatis.sqlmap.client.SqlMapException: There is already a statement named search in this SqlMap.
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:86)
这个是因为没有启用命名空间,导致存在相同的SQL ID
解决方案如下:
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:86)
这个是因为没有启用命名空间,导致存在相同的SQL ID
解决方案如下:
<settings cacheModelsEnabled="true" enhancementEnabled="true" lazyLoadingEnabled="true" errorTracingEnabled="true" maxRequests="32" maxSessions="10" maxTransactions="5" useStatementNamespaces="true" />
相关文章推荐
- com.ibatis.sqlmap.client.SqlMapException: There is already a statement named search in this SqlMap.
- Ibatis com.ibatis.sqlmap.client.SqlMapException: There is already a statement named in this SqlMap.
- Ibatis com.ibatis.sqlmap.client.SqlMapException: There is already a statement named in this SqlMap.
- 解决com.ibatis.sqlmap.client.SqlMapException: There is no statement named in this SqlMap
- 解决com.ibatis.sqlmap.client.SqlMapException: There is no statement named in this SqlMap
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named Control.insert-control in this SqlMap.
- com.ibatis.sqlmap.client.SqlMapExceptionThere is no statement named XIU_ITEM_INFO.ibatorgenerated_in
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named 语句名 in this SqlMap.
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named ST_TIDE_R.selectTTSpaceInfo in
- javax.servlet.ServletException: com.ibatis.sqlmap.client.SqlMapException: There is no statement named...问题
- ibatis 报错:There is already a statement named uhr.rcmt.updateResumeScore in this SqlMap.
- There is already a statement named search in this SqlMap.
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named getAll
- Cause: com.ibatis.sqlmap.client.SqlMapException: There is no result map named java.lang.Integer in t
- ibatis 报错:There is already a statement named uhr.rcmt.updateResumeScore in this SqlMap.
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named 解决
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named 解决
- 解闷ibatis与spring的配置( There is no statement named XXX in this SqlMap)
- There is already a statement named SysUser.getUserByOrganCode in this SqlMap. spring id相同
- ibatis与spring的配置( There is no statement named XXX in this SqlMap)