felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: Spring + Felix war + component scan tag = FileNotFoundException
Date Thu, 09 Feb 2012 16:37:30 GMT

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


Mime
View raw message