Re: Resource not found exception

2006-03-02 Thread Nathan Maves
AFAIK there are no issues with the Resources class built into ibatis.  We use it in multiple web applications as well as stand alone java applications.  Of which all of the .properties and .xml files are all included in the jar's.What OS are you working on? I would try to change your path to this..

RE: Resource not found exception

2006-03-02 Thread radha rukmani
Thanks for your help Gustavo. It works now. Radha.Gustavo Henrique Sberze Ribas <[EMAIL PROTECTED]> wrote: Try putting the current directory (.) in the classpath:set Classpath=.;%Classpath%;%rootpath%\FERTPlateTransfer.jarGustavo-Original Message-From: radha rukmani [mailto:[EMAIL PROTECT

Re: Resource not found exception

2006-03-02 Thread Gareth Moorst
Use getClass().getResource("/com/comp/drimm/FERTPlateTransfer/xml/sqlMapConfig.xml"); to get a URL to the resource, or getClass().getResourceAsStream to get an InputStream. This works from inside jar files, but you need to make sure that the ml file is also in your jar --- radha rukmani <[EMAI

RE: Resource not found exception

2006-03-02 Thread Gustavo Henrique Sberze Ribas
Try putting the current directory (.) in the classpath: set Classpath=.;%Classpath%;%rootpath%\FERTPlateTransfer.jar Gustavo -Original Message- From: radha rukmani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 02, 2006 1:18 PM To: user-java@ibatis.apache.org Subject: Re: Resource no

Re: Resource not found exception

2006-03-02 Thread radha rukmani
Hi,   I tried copying the directory structure com\comp\drimm\FERTPlateTransfer\xml\sqlMapConfig.xml into the directory where the .bat file is located. It still gives me the same error. Could some one please let me know a solution for this.   Thanks.Tony Qian <[EMAIL PROTECTED]> wrote: Radha,Re

Re: Resource not found exception

2006-03-02 Thread radha rukmani
Hi Tony,   I read the previous post, it says put them in the web-inf/classes directory. But mine is a standalone batch process application. Please let me know where should i put these.   Thanks, Radha.Tony Qian <[EMAIL PROTECTED]> wrote: Radha,Resource doesn't work well inside jar or war file.

Re: Resource not found exception

2006-03-02 Thread Tony Qian
Radha, Resource doesn't work well inside jar or war file. Please see previous post on this issue for fix. Tony radha rukmani wrote on 3/2/2006, 10:53 AM: Hi,   I have an application developed in eclipse using ibatis which runs correctly. When i tried to jar this application(

Resource not found exception

2006-03-02 Thread radha rukmani
Hi,   I have an application developed in eclipse using ibatis which runs correctly. When i tried to jar this application(using the eclipse jar utility) and run it from a batch file, it throws me an exception saying that my resource is not found.  This is the error message   2006-03-02 10:46:37,

Caching with custom rowhandler

2006-03-02 Thread David Rosenstark
Is it possible to cache results if I have a custom row handler? Thanks, David