Sorry, my bad. This code isn't in 2.1.6. It will be in the next release.
Cheers,
Clinton
On 11/18/05, Clinton Begin <[EMAIL PROTECTED]> wrote:
2.1.6 improved this yet again. So you should upgrade if you can.
Here's the code:
http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/builder/xml/SqlMapClasspathEntityResolver.java
It should be case insensitive and should fully support both ibatis.com and apache.org doctypes.
Comments welcome.
Cheers,
Clinton
On 11/18/05, Vincent NICOLAS <[EMAIL PROTECTED] > wrote:Unfortunately, I am using 2.1.5.
Jeff Butler a écrit :
> The entity resolver ignores the public id - the system id is what's
> important. There was a bug in this area that was fixed in version
> 2.1.5 - make sure you are using that version. If you are not using
> 2.1.5, then you'll need to use the old system ids.
>
> Jeff Butler
>
>
> On 11/18/05, *Niels Beekman* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> One of the developers should comment on this, personally I think
> the identifier will be recognized in future versions, amongst
> other reasons, it saves bandwith and is a small effort.
>
> Niels
>
> -----Original Message-----
> From: Vincent NICOLAS [mailto: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>]
> Sent: vrijdag 18 november 2005 14:34
> To: user-java@ibatis.apache.org <mailto:user-java@ibatis.apache.org>
> Subject: Re: New doctype won't work
>
> Thanks you for the quick answer. Does this mean that I will have to
> change it again with a future revision of iBatis ? Or will the
> //iBatis.com be recognize too in future releases ?
>
>
> Niels Beekman a écrit :
>
> >iBATIS uses a SAX EntityResolver to resolve DTD's from the iBATIS
> jars.
> >The public identifier //ibatis.apache.org does not resolve to the
> jars
> >yet. If you use the following:
> >
> ><!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config
> >2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"
> < http://ibatis.apache.org/dtd/sql-map-config-2.dtd%22>>
> >
> >it should work.
> >
> >Niels
> >
> >-----Original Message-----
> >From: Vincent NICOLAS [mailto: [EMAIL PROTECTED]
> <mailto: [EMAIL PROTECTED]>]
> >Sent: vrijdag 18 november 2005 11:12
> >To: user-java@ibatis.apache.org <mailto: user-java@ibatis.apache.org>
> >Subject: New doctype won't work
> >
> >Hi everyone,
> >
> >I'm trying to change my DOCTYPE from
> ><!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config
> > 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd"
> < http://www.ibatis.com/dtd/sql-map-config-2.dtd%22 >>
> >
> >to the new one :
> ><!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map
> Config
> >2.0//EN" " http://ibatis.apache.org/dtd/sql-map-config-2.dtd"
> <http://ibatis.apache.org/dtd/sql-map-config-2.dtd%22 >>
> >
> >However, doing so leads to an error when I launch Tomcat (4.1.31,
> from
> >Eclipse 3.1) : a connect error (timeout). This behavior seems
> logical to
> >
> >me because my computer is behind a proxy, and I haven't set any proxy
> >config in Tomcat. The question is : why it is working in the
> first case
> >?
> >
> >Any idea is welcome...
> >
> >
>
>
--
Vincent NICOLAS
Teamlog, Lyon