ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Dixit" <rash...@gmail.com>
Subject RE: sql-map-config pb
Date Wed, 21 Jun 2006 09:17:30 GMT
You need to correct the DOCTYPE entry at the beginning of your file.

<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config
2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">

From: jeremy jardin [mailto:jeremy.jardin@newtec.caisse-epargne.fr] 
Sent: Wednesday, June 21, 2006 2:42 PM
To: user-java@ibatis.apache.org
Subject: sql-map-config pb


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"
 <transactionManager type="JDBC" commitRequired="true">
 	 <property name="DefaultAutoCommit" value="false"/>
  	<property name="SetAutoCommitAllowed" value="false"/>
  <dataSource type="simple">
    <property name="JDBC.Driver"
    <property name="JDBC.ConnectionURL"
    <property name="JDBC.Username" value=""/>
    <property name="JDBC.Password" value=""/> 
  	<sqlMap resource="UTILISATEUR_SqlMap.xml"/>

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 ??


View raw message