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 <[email protected]>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: [email protected] > For additional commands, e-mail: [email protected] > >
