ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <paul4chris...@yahoo.com>
Subject Re: Cannot find sqlmap in jar - new bug
Date Sun, 11 Jun 2006 05:18:44 GMT
Clinton, it was only a conjecture that it was using the File object, but my follow up emails
show
that I peeked into Resource.java to see what is going on. 

But, afaik, all signs at the moment point to a problem in ibatis. When I pull the XML files
out of
the jar and put them directly into WEB-INF/classes, the XML configs can be found. My best
guess at
the moment is that it deals with the Classloader that is being passed in. 

I'd like someone on the ibatis team to reproduce it. I am using tomcat 5.0.28, if it makes
a
difference on what platform is used.

Paul

--- Clinton Begin <clinton.begin@gmail.com> wrote:

> >> which means that IBATIS is making a wrong assumption here
> 
> You're assuming iBATIS is making an assumption.  Which it is not. If you're
> using the the iBATIS Resources util, you can confirm the behavior here:
> 
>
http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/src/com/ibatis/common/resources/Resources.java
> 
> Cheers,
> Clinton
> 
> On 6/10/06, Paul Benedict <paul4christ79@yahoo.com> wrote:
> >
> > I am using version 2.1.5.582
> >
> > My web application has a sqlMapConfig.xml file which is the bootstrap
> > config for ibatis. But the
> > actual configuration files which it refers (<sqlMap> elements) are in a
> > jar. Has anyone had this
> > problem?
> >
> > I have verified that exploding the jar into my WEB-INF/classes directory
> > makes the problem go
> > away, which means that IBATIS is making a wrong assumption here. Is it
> > using a File object instead
> > of Class.getResourceAsStream() ?
> >
> > -- Paul
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message