ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jeremy jardin" <jeremy.jar...@newtec.caisse-epargne.fr>
Subject sql-map-config pb
Date Wed, 21 Jun 2006 09:12:01 GMT
Hello, 
 
I'm first time using Ibatis, and I have a problem with the
sql-map-config.xml file.
 
I write it like that :
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sql-map-config PUBLIC "-//iBATIS.com
                                  //DTD SQL Map Config 1.0//EN"
   "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
   
<sqlMapConfig>
 <transactionManager type="JDBC" commitRequired="true">
 
       <property name="DefaultAutoCommit" value="false"/>
      <property name="SetAutoCommitAllowed" value="false"/>
  
  <dataSource type="simple">
    <property name="JDBC.Driver"
value="oracle.jdbc.driver.OracleDriver"/>
    <property name="JDBC.ConnectionURL"
 
value="jdbc:oracle:thin:@srvappld4.architect.newtec.dom:1521:xe"/>
    <property name="JDBC.Username" value=""/>
    <property name="JDBC.Password" value=""/> 
  </dataSource>
  </transactionManager>
  
      <sqlMap resource="UTILISATEUR_SqlMap.xml"/>
</sqlMapConfig>
 
 
It seems to be ok, but I have that exception :
org.xml.sax.SAXParseException: Document root element "sqlMapConfig",
must match DOCTYPE root "sql-map-config".
 
I don't understand why ??
 
Thx
 
 

Mime
View raw message