【发布时间】:2017-01-16 16:42:21
【问题描述】:
我正在尝试遵循一个简单的教程,使用蓝图将简单的 CRUD 接口公开为 REST 服务 github link to tutorial code
部署到 serviceMix 时,出现以下错误:
java.lang.IllegalArgumentException: Unknown namespace for jpa: http://cxf.apache.org/schemas/configuration/cxf-beans.xsd
不知道为什么,我安装了和教程features一样的features
我也有同样的maven dependencies dependencies
我的bundle:list 给出以下list of bundles
bundles 和 state:failure 由于这个问题而失败
有什么想法吗?
更新 1:
blueprintblueprint的内容
我也在使用blueprint-maven-plugin,它会生成以下generated blueprint
更新 2:
正如 Christian Schneider 所建议的,安装 aries-jpa 2.5.0 解决了这个问题,但发生了一件奇怪的事情:
之前,当我安装 2.3.0 版本时,我安装了以下 aries 相关捆绑包:
254 | Active | 80 | 2.3.0 | Apache Aries JPA Container API
255 | Active | 80 | 2.3.0 | Apache Aries JPA blueprint
256 | Active | 80 | 2.3.0 | Apache Aries JPA container
257 | Active | 80 | 2.3.0 | Apache Aries JPA support
现在我有了 2.5.0,在执行 bundle:list 时不再显示这些捆绑包
feature:list 显示如下
jpa| 2.5.0|| Started| aries-jpa-2.5.0| OSGi Persistence Container
所以问题是,我是否应该担心这些捆绑包不再显示?
【问题讨论】:
标签: java rest osgi cxf blueprint-osgi