Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3DD59E56 for ; Wed, 25 Apr 2012 16:59:31 +0000 (UTC) Received: (qmail 74664 invoked by uid 500); 25 Apr 2012 16:59:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 74623 invoked by uid 500); 25 Apr 2012 16:59:31 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 74610 invoked by uid 99); 25 Apr 2012 16:59:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 16:59:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 16:59:25 +0000 Received: by lboi15 with SMTP id i15so310998lbo.32 for ; Wed, 25 Apr 2012 09:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=kUDlsL026mDS+N/LZ58I0eDg+ZcmUGT7EVxB5R3g5u0=; b=GG8pTO7PD5KvhqZ0ol92F+KSoncLfJ0FKtAdnzudk+cpcuE9JYJwGXWvKPdjfdzuRz hLwi9KE1t5ltEO274Snmj6Hi+rKeBpgEt8/0gySkph+Z42dHQ6Uu9B3aldr+u4qsT4Yh td1rW3tkPj8R9OHImjLhN+HrFeIR7ygpCXV75DzW0MRRj1iMFHZlKUvL2Z+bqAN3C5AK p+UtKJwS9pnFJ6B19mQ9JN6SPAN//4Zpgfp4RyUeY/44GhjrJoEB8UldRum1k2uF4kZq Lykp3m0jclSHFXAxCbmCTNPGeM5W3h3nkX+P2cOJYSVt3mGagfH1+YuBJghFhgKTuu7y kKMQ== Received: by 10.152.123.111 with SMTP id lz15mr3406451lab.18.1335373145515; Wed, 25 Apr 2012 09:59:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.146.7 with HTTP; Wed, 25 Apr 2012 09:58:45 -0700 (PDT) In-Reply-To: <6db08221-90ac-4f53-b576-30de79bfa7e0@zimbra-store> References: <70461bb5-6c0c-441e-95c6-4a7c5079fe42@zimbra-store> <6db08221-90ac-4f53-b576-30de79bfa7e0@zimbra-store> From: Claus Ibsen Date: Wed, 25 Apr 2012 18:58:45 +0200 Message-ID: Subject: Re: Cannot find resource in classpath using OSGi blueprint To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2012 at 11:25 AM, Tobias Hofer wr= ote: > Hi all, > > I switched from Apache Camel version 2.8.4 (in ServiceMix 4.4.1) to the > most recent version 2.9.2. Resource loading in 2.8.4 worked well, but not > in the new release of camel. > > I've a blueprint XML that contains the camel route deployed in the deploy > folder as well as several osgi bundles that contain template resources fo= r > XSLT and String-Template. > > I get the following error: > > java.io.FileNotFoundException: Cannot find resource in classpath for URI:= com/example/test.xml > =A0at org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInpu= tStream(ResourceHelper.java:89)[91:org.apache.camel.camel-core:2.9.2] > =A0at org.apache.camel.component.ResourceEndpoint.loadResource(ResourceEn= dpoint.java:92)[91:org.apache.camel.camel-core:2.9.2] > =A0at org.apache.camel.component.ResourceEndpoint.getResourceAsInputStrea= mWithoutCache(ResourceEndpoint.java:81)[91:org.apache.camel.camel-core:2.9.= 2] > =A0at org.apache.camel.component.ResourceEndpoint.getResourceAsInputStrea= m(ResourceEndpoint.java:77)[91:org.apache.camel.camel-core:2.9.2] > =A0at org.apache.camel.component.stringtemplate.StringTemplateEndpoint.on= Exchange(StringTemplateEndpoint.java:59)[165:org.apache.camel.camel-stringt= emplate:2.9.2] > > The same problem exists by the XSLT component. > There was a recent fix on this. Can you try 2.9.3 SNAPSHOT. Also do you use xslt include or something? eg how is your xslt endpoint configured,etc. And do you use Windows or other OS. > Kind regards, > Tobias --=20 Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/