ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olamalam <ilker.cikrikc...@aspone.co.uk>
Subject Re: Could not find resource exception
Date Tue, 12 Jan 2010 15:49:25 GMT

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.cikrikcili@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.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
>> >>
>> >>
>> >
>> >
>>
>> --
>> 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-unsubscribe@ibatis.apache.org
>> For additional commands, e-mail: user-java-help@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-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message