ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Thompson <artho...@gmail.com>
Subject Upgrading ibatis datamapper from 1.31 to 2.09B
Date Wed, 11 May 2005 21:02:42 GMT
I'm running into some issues when upgrading from 1.31 to 2.09B on an
existing application.  I managed to get the jars updated (still using
the compat jar).  I also got the script to upgrade the sql-map.xml and
sql-map-config.xml files.

That said, I can't get the new 2.0 SqlMapConfig.xml script to work. 
And unfortunatly the error logs are a little meaningless to me:

"com.ibatis.db.sqlmap.SqlMapException: Error while building SqlMap.

java.io.IOException: The root tag of the SqlMap XML document must be 'sql-map
r 'sql-map-config'.
Caused by: java.io.IOException: The root tag of the SqlMap XML document must
'sql-map' or 'sql-map-config'.
        at com.ibatis.db.sqlmap.XmlSqlMapBuilder.buildSqlMap(Unknown Source)
        at com.ibatis.db.sqlmap.XmlSqlMapBuilder.buildSqlMap(Unknown Source)"

New script:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <!--Converted by iBATIS SQL Map Converter 'A' (1.x to 2.x)-->
    <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config
2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
<sqlMapConfig xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <settings cacheModelsEnabled="true" maxRequests="0"/> 
  <sqlMap resource="resource/ObjectMap.xml"/>


Old script:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sql-map-config
    PUBLIC "-//iBATIS.com//DTD SQL Map Config 1.0//EN"


  <settings cacheModelsEnabled="true"

  <sql-map resource="resource/ObjectMap.xml" />

Andrew R. Thompson
Currently in D.C. Consulting

View raw message