Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 63447 invoked from network); 12 Jan 2010 15:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 15:08:05 -0000 Received: (qmail 92621 invoked by uid 500); 12 Jan 2010 15:08:04 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 92565 invoked by uid 500); 12 Jan 2010 15:08:04 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 92557 invoked by uid 99); 12 Jan 2010 15:08:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 15:08:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 15:07:56 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NUiLI-0007To-57 for user-java@ibatis.apache.org; Tue, 12 Jan 2010 07:07:36 -0800 Message-ID: <27128946.post@talk.nabble.com> Date: Tue, 12 Jan 2010 07:07:36 -0800 (PST) From: olamalam To: user-java@ibatis.apache.org Subject: Could not find resource exception MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ilker.cikrikcili@aspone.co.uk 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