ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme J Sweeney <ibatis.u...@gjsweeney.com>
Subject Re: Using IBATIS From within Tomcat (& Eclipse)
Date Thu, 08 Mar 2007 14:31:31 GMT
On Thu, 8 Mar 2007, Gordon Ross wrote:

> Now this wasn't totally surprised as I wasn't sure about the basic CWD
> of a tomcat app. In this case (when running under Eclipse) it appears to
> be my home directory. So I put the sqlmap.xml file there, and IBATIS
> still complains that it can't find the file.

I can't speak for how Eclipse influences the set up but I would expect
your SqlMap.xml to reside in WEB-INF/classes in your document root.

e.g. /home/user/public_html/WEB-INF/classes

> So what's going on here ? How can I point IBATIS to the XML config
> files under Tomcat (& Eclipse)

You might want to try getResourceAsStream too.

-- 
Graeme -

Mime
View raw message