ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: FileNotFoundException: http://www.mybatis.org/dtd/sql-map-config-2.dtd
Date Thu, 27 May 2010 21:46:37 GMT
The ibatis.com doctypes were deprecated about 4 years ago... they should be
changed to ibatis.apache.org...

The reason they would suddenly stop working is that the
ibatis.com/net/orgredirects have just changed recently.  But again,
those doctypes were
deprecated ages ago.


See the news release from 2006 here, about 1/3 down the page:
http://ibatis.apache.org/archive.html

*DTDs @ iBATIS.com - The Deed has been done*

(Jul 30, 2006) The DTDs hosted at iBATIS.com have been permanently removed.
The multiple warnings went starting with a broadcast announcement to the
mailing lists and a permanent space on the homepage. With over 1.5 million
hits to the DTD per month, it was time to move the burden over to the Apache
servers. ;-) 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.

<!DOCTYPE sqlMapConfig
           PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
            "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

<!DOCTYPE sqlMap
           PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
            "http://ibatis.apache.org/dtd/sql-map-2.dtd">

<!DOCTYPE daoConfig
           PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
            "http://ibatis.apache.org/dtd/dao-2.dtd">

Notice the change to http://ibatis.apache.org/dtd/


Clinton

On Thu, May 27, 2010 at 10:20 AM, mule_user <sgho@aol.com> wrote:
>
> 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: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

Mime
View raw message