Java Mailing List Archive

http://www.java2.5341.com/

Home » user-java.ibatis »

FileNotFoundException:
http://www.mybatis.org/dtd/sql-map-config-2.dtd

mule_user

2010-05-27

Replies: Find Java Web Hosting

Author LoginPost Reply

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?







--
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@(protected)
For additional commands, e-mail: user-java-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.