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
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:416)
Caused by: java.io.FileNotFoundException:
http://www.mybatis.org/dtd/sql-map-config-2.dtd
What should I be using for:
http://ibatis.apache.org/dtd/sql-map-config-2.dtd?
The link, http://ibatis.apache.org/dtd/sql-map-config-2.dtd is also broken.
Changing http://ibatis.apache.org/dtd/sql-map-config-2.dtd to
http://ibatis.apache.org/dtd/sql-map-config-2.dtd, as I have it in my1.xml,
I get exception as incorrect XML format.
My question:
What do I need to use in place of:
http://ibatis.apache.org/dtd/sql-map-config-2.dtd?
--
View this message in context:
http://old.nabble.com/FileNotFoundException%3A-http%3A--www.mybatis.org-dtd-sql-map-config-2.dtd-tp28696555p28696555.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]