Announcement Announcement Module
Collapse
No announcement yet.
Felix war + component scan tag = FileNotFoundException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Felix war + component scan tag = FileNotFoundException

    Hi,

    Did you try to use spring "component scan" tag inside OSGI war bundle in felix? I'm getting the following exception (attached spring log file and applicationContext.xml Attachment ). I saw that a similar bug was solved for equinox (https://jira.springsource.org/browse/SPR-6592), and what about felix? Is there a workaround or solution to this problem?

    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(Res ourceUtils.java:204)
    at org.springframework.core.io.AbstractFileResolvingR esource.getFile(AbstractFileResolvingResource.java :52)
    at org.springframework.core.io.UrlResource.getFile(Ur lResource.java:168)
    at org.springframework.core.io.support.PathMatchingRe sourcePatternResolver.doFindPathMatchingFileResour ces(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 []


    thank you for any tip
    Attached Files
Working...
X