ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Selva <selva.an...@gmail.com>
Subject Re: Could not find resource exception
Date Tue, 12 Jan 2010 15:15:18 GMT
Hi,
i think that probably you missed to insert the config folder in your
classpath. File api works on the filesystem , Resources on the classpath.
I hope this help
  Andrea

On Tue, Jan 12, 2010 at 4:07 PM, olamalam <ilker.cikrikcili@aspone.co.uk>wrote:

>
> Hi to all,
> I'm new to ibatis and I have a problem about getting sqlMapConfig.xml file
> as a reader.
> I think this is to do with class loaders but i followed forums, the advices
> I found didn't help.
>
> although
> File file = new File("config/SqlMapConfig.xml");
> works correct,
> Reader reader = Resources.getResourceAsReader("config/SqlMapConfig.xml");
> gives "could not find resource" exception.
>
> what should I do?
>
> thanks in advance...
> --
> View this message in context:
> http://old.nabble.com/Could-not-find-resource-exception-tp27128946p27128946.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

Mime
View raw message