http://www.mybatis.org/dtd/sql-map-config-2.dtd
2010-05-27 16:20:12 GMT
I am using iBatis version 2 and Spring 2.5
My 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">
<sqlMapConfig>
<settings useStatementNamespaces="true" />
<sqlMap resource="org/../mapping/my1.xml" />
<sqlMap resource="org/../mapping/my2.xml" />
</sqlMapConfig>
my1.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd" >
<sqlMap namespace="county">
....
....
When I start the server with the application deployed, I get error as:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from URL
[file:/C:/workspace/.../bin/sqlmap-config-myApp.xml]; nested exception is
java.io.FileNotFoundException:
http://www.mybatis.org/dtd/sql-map-config-2.dtd
(Continue reading)
If you're a year behind on your email and using an old version of iBATIS, and you're wondering why your application won't start anymore...try changing the DOCTYPE of your XML files to the following.
RSS Feed