是否有可能在felix中使用spring内部的war包?我使用弹簧3.0.5与felix上玻璃鱼3.1Spring + Felix war = FileNotFoundException
我试图输入component-scan
标记在felix中的OSGI战争捆绑包,我得到下面的异常。
我看到一个similar bug解决了Equinox,那么felix呢?有没有解决这个问题的解决方法?
PS:如果我在web.xml contextConfigLocation
限定与*路径相同的抛出异常,例如:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:META-INF/spring/*.xml</param-value>
</context-param>
例外:
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 []
applicationContext.xml中:
谢谢你的任何提示