Thanks you Andrea, I'll do that...
Andrea Selva wrote: > > Insert it a resource folder and let your build system to include > automatically it in your classes dir or better in your jar. Consider in > case > to use a maven project, eclipse has a good support for maven project. > Andrea > > On Tue, Jan 12, 2010 at 4:36 PM, olamalam > <ilker.cikrikc...@aspone.co.uk>wrote: > >> >> I think you are right. after reading your reply, I moved the xml file >> under >> to src folder and it worked correct. >> >> how can I insert the config folder in my classpath? >> >> thanks... >> >> >> Andrea Selva wrote: >> > >> > 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.cikrikc...@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-unsubscr...@ibatis.apache.org >> >> For additional commands, e-mail: user-java-h...@ibatis.apache.org >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Could-not-find-resource-exception-tp27128946p27129423.html >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org >> For additional commands, e-mail: user-java-h...@ibatis.apache.org >> >> > > -- View this message in context: http://old.nabble.com/Could-not-find-resource-exception-tp27128946p27129666.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org