ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: Upgrading ibatis datamapper from 1.31 to 2.09B
Date Fri, 13 May 2005 19:08:53 GMT
did you clean out your tomcat work directory? ;-)

Brandon

On 5/11/05, Andy Thompson <arthomps@gmail.com> wrote:
> 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.
> 
> Error:
> 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"/>
> 
> </sqlMapConfig>
> __________________________________________
> 
> Old script:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE sql-map-config
>     PUBLIC "-//iBATIS.com//DTD SQL Map Config 1.0//EN"
>     "http://www.ibatis.com/dtd/sql-map-config.dtd">
> 
> <sql-map-config>
> 
>   <settings cacheModelsEnabled="true"
>                         statementCacheSize="10000"
>                         maxExecute="0"
>                         maxExecutePerConnection="0"
>                         driverHintsEnabled="true"
>         />
> 
>   <sql-map resource="resource/ObjectMap.xml" />
> 
> </sql-map-config>
> --
> Andrew R. Thompson
> Currently in D.C. Consulting
>

Mime
View raw message