ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Karl Schwaerzler <Thomas.Schwaerz...@student.uibk.ac.at>
Subject error parsing xml files
Date Mon, 03 Jul 2006 13:40:29 GMT

hello,

if i try to instantiate DaoManager:

reader = new FileReader(DaoConfigPath);
DaoManager dm = DaoManagerBuilder.buildDaoManager(reader);


i get the following error:


Exception in thread "main" com.ibatis.dao.client.DaoException: Error while 
configuring DaoManager.  Cause: 
com.ibatis.common.exception.NestedRuntimeException: Error occurred. 
Cause: 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: 
com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath 
'/sqlMap/select'.  Cause: 
com.ibatis.common.exception.NestedRuntimeException: Could not find SQL 
statement to include with refid 
'user_ODM_LINK.abatorgenerated_Example_Where_Clause'



here my DaoConfig.xml:

   <transactionManager type="JDBC">
     <property name="DataSource" value="SIMPLE"/>
     <property name="JDBC.Driver" value="${driver}"/>
     <property name="JDBC.ConnectionURL" value="${url}"/>
     <property name="JDBC.Username" value="${username}"/>
     <property name="JDBC.Password" value="${password}"/>
     <property name="JDBC.DefaultAutoCommit" value="true" />
     <property name="Pool.MaximumActiveConnections" value="10"/>
     <property name="Pool.MaximumIdleConnections" value="5"/>
     <property name="Pool.MaximumCheckoutTime" value="120000"/>
   </transactionManager>

   <dao interface="org.dea.odm.model.dao.test.dao.OdmLinkDAO"

implementation="org.dea.odm.model.dao.test.dao.OdmLinkDAOImpl" />


  </context>
  <!-- Example SQL Maps DAO Configuration -->
  <context>
   <transactionManager type="SQLMAP">
     <property name="SqlMapConfigResource" 
value="org/dea/odm/model/dao/test/sqlmap/SqlMapConfigAbator.xml"/>
   </transactionManager>

   <dao interface="org.dea.odm.model.dao.test.dao.OdmLinkDAO"

implementation="org.dea.odm.model.dao.test.dao.OdmLinkDAOImpl" />

  </context>
</daoConfig>



here my SqlMapConfigAbator.xml


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig
    PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
    "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
<!-- Always ensure to use the correct XML header as above! -->
<sqlMapConfig>
     <sqlMap 
resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_LINK_SqlMap.xml" 
/>
</sqlMapConfig>



i cant find out what this error message means, am i doing 
something completly worng?


greets
t.

Mime
View raw message