Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 175929B07 for ; Thu, 9 Feb 2012 16:38:00 +0000 (UTC) Received: (qmail 88103 invoked by uid 500); 9 Feb 2012 16:37:59 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 87952 invoked by uid 500); 9 Feb 2012 16:37:58 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 87944 invoked by uid 99); 9 Feb 2012 16:37:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 16:37:58 +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 (athena.apache.org: domain of heavy@ungoverned.org designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-yx0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 16:37:52 +0000 Received: by yenm4 with SMTP id m4so1244888yen.22 for ; Thu, 09 Feb 2012 08:37:32 -0800 (PST) Received: by 10.50.57.234 with SMTP id l10mr4521124igq.12.1328805451723; Thu, 09 Feb 2012 08:37:31 -0800 (PST) Received: from Richard-S-Halls-iMac.local (adsl-99-62-222-230.dsl.sgnwmi.sbcglobal.net. [99.62.222.230]) by mx.google.com with ESMTPS id g34sm6085966ibk.10.2012.02.09.08.37.30 (version=SSLv3 cipher=OTHER); Thu, 09 Feb 2012 08:37:31 -0800 (PST) Message-ID: <4F33F64A.1000009@ungoverned.org> Date: Thu, 09 Feb 2012 11:37:30 -0500 From: "Richard S. Hall" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: Spring + Felix war + component scan tag = FileNotFoundException References: <33294104.post@talk.nabble.com> <4F33EFF1.1030409@ungoverned.org> <33294511.post@talk.nabble.com> In-Reply-To: <33294511.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQl/gSpJi4zt6GkRyHe3GpM0UXMWMfrENaKU7SPKR3ekuQfCDUd1CAzjX0MMPwC8o6z9Hwxh On 2/9/12 11:33 , lili_ili wrote: > Its relevant only to felix users, I thought to check if someone found a > solution / workaround for this problem. True. Yeah, I was thinking you were asking for a framework-specific fix... Still, I'd ask in the Spring forums too, if you haven't already. -> richard > > > Richard S. Hall wrote: >> It is not clear that this has anything to do with the Felix framework. >> It sounds like Spring is scanning the bundles for files and it is not >> getting what it expects. Did you take this up with the Spring guys first? >> >> -> richard >> >> On 2/9/12 10:38 , lili_ili wrote: >>> Hi, >>> >>> Did you try to use spring component scan tag inside war bundle? I'm >>> getting >>> the following exception (attached spring log file >>> http://old.nabble.com/file/p33294104/spring.log spring.log ). I saw that >>> a >>> similar bug was solved for equinox, and what about felix? Is there a >>> known >>> workaround? https://jira.springsource.org/browse/SPR-6592 >>> https://jira.springsource.org/browse/SPR-6592 >>> >>> The spring xml definition is attached >>> http://old.nabble.com/file/p33294104/applicationContext.xml >>> applicationContext.xml >>> >>> Exception: >>> >>> 2012-02-08 18:30:23,194 [pool-28-thread-1] >>> (PathMatchingResourcePatternResolver.java:532) WARN - Cannot search for >>> matching files underneath URL [bundle://275.0:2/examples/services/] >>> because >>> it does not correspond to a directory in the file system >>> java.io.FileNotFoundException: URL [bundle://275.0:2/examples/services/] >>> cannot be resolved to absolute file path because it does not reside in >>> the >>> file system: bundle://275.0:2/examples/services/ >>> at >>> org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:204) >>> at >>> org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:52) >>> at >>> org.springframework.core.io.UrlResource.getFile(UrlResource.java:168) >>> at >>> org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.java:528) >>> ... >>> 2012-02-08 18:30:23,194 [pool-28-thread-1] >>> (PathMatchingResourcePatternResolver.java:353) DEBUG - Resolved location >>> pattern [classpath*:examples/services/**/*.class] to resources [] >>> >>> >>> thanks >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org