ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <lmead...@apache.org>
Subject Re: Resources
Date Fri, 20 Jan 2006 18:22:16 GMT
I have also seen cases where you have to use a leading / with
different classloaders, I know, it sounds retarded (and IMO, it is),
but it has worked for me in the past.

Larry

On 1/20/06, Clinton Begin <clinton.begin@gmail.com> wrote:
> Because JAR files mess up the resource path.  You'd probably have to use
> something goofy like "jar!/sqlMapConfig.xml"....but I wouldn't depend upon
> that.  I suggest just putting them in WEB-INF/classes.
>
>  Clinton
>
>
> On 1/20/06, Tony Qian <daqiqian2@aol.com> wrote:
> > Can someone tell why Resources.getResourceAsReader(sqlMapConfig.xml) can
> not find the sqlMapConfig.xml and sql mapping xml files if I package them
> inside jar file? When I put them under WEB-INF/classes/ (i'm using tomcat),
> everything works okay.
> >
> > Thanks,
> > Tony
> >
>
>

Mime
View raw message