【发布时间】:2013-10-04 02:59:27
【问题描述】:
在 Spring 初始化过程中出现以下异常:
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi]
Offending resource: OSGi resource[bundleentry://104.fwk32582392/META-INF/varaza/extender/extender-context.xml|bnd.id=103|bnd.sym=com.pearlox.varaza]
如何确定哪个 JAR(哪个 Maven 工件包含 [http://www.springframework.org/schema/osgi] 的正确 NamespaceHandler 的定义?我解决这个问题的策略应该是什么样的?
我的问题中还有哪些内容可以帮助您了解情况? (请评论)
P.S.:我在 StackOverflow 上看到很多与其他库相关的类似问题,但答案取决于特定的命名空间。
【问题讨论】:
-
@SotiriosDelimanolis 我的 pom 中有这个:
org.springframework.osgi spring-osgi-core 1.2.1 -
从您的异常看来您正在使用 Spring DM - 对吗?
-
你解决了吗?我有这个问题。
-
@Phil 由于这个以及许多其他与 OSGi 相关的问题,我们决定从项目中删除 OSGi。
标签: java spring maven xsd osgi