felix에서 war bundle 안에 spring을 사용할 수 있습니까? 글래스 피쉬에서 felix와 함께 봄 3.0.5를 사용합니다.Spring + Felix war = FileNotFoundException
펠릭스에서 OSGI war bundle 안에 component-scan
태그를 입력하려고했는데, 아래 예외가 나타납니다.
나는 similar bug이 춘분 (Equinox)을 위해 풀린 것을 보았으며, 펠릭스는 어땠습니까? 이 문제에 대한 해결 방법이나 해결책이 있습니까?
PS :
<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 :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx">
<context:annotation-config/>
<tx:annotation-driven />
<context:component-scan base-package="examples.services" />
</beans>
I는 web.xml의
contextConfigLocation
에서 *로 경로를 정의하는 경우와 동일한 예외는 예를 들면, 슬로우
팁 주셔서 감사합니다.