【问题标题】:Problems installing CXF in karaf 3.0.3在 karaf 3.0.3 中安装 CXF 时出现问题
【发布时间】:2015-05-06 12:45:25
【问题描述】:

尝试在 Karaf 3.0.3 上安装分布式 cxf 1.6.0 时,我遇到了一个奇怪的依赖问题。

谈到 Karaf 时,我仍在学习教程,所以我不知道我缺少什么。 2 小时的谷歌搜索带来了一点乐趣。

我尝试从cxf dosgi page 安装简单的欢迎服务,但尝试安装 cxf 功能让我陷入了僵局。

$ feature:repo-add cxf-dosgi 1.6.0
$ feature:install -v cxf
...
Found installed bundle: org.apache.cxf.cxf-rt-features-clustering [1101]
Found installed bundle: org.apache.cxf.bundle [1102]
Error executing command: Can't install feature cxf/0.0.0:
Could not start bundle mvn:org.apache.cxf/cxf-bundle-compatible/2.7.8 in feature(s) cxf-2.7.8: Unresolved constraint in bundle org.apache.cxf.bundle [1102]: Unable to resolve 1102.0: missing requirement [1102.0] osgi.wiring.bundle; (osgi.wiring.bundle=org.springframework.beans)

我到底错过了什么?我看到缺少 spring 依赖项,但我该如何修复它。我似乎在任何地方都找不到那个捆绑包,为什么 karaf 不抓住它?

【问题讨论】:

  • cxf 1.6 不是很旧吗?
  • 是的,但 cxf-dosgi 1.6 似乎是较新的版本之一。

标签: cxf apache-karaf dosgi


【解决方案1】:

Karaf 具有易于使用的功能。 在您的情况下,您只需要添加 cxf-dosgi 存储库,这您已经正确完成了。要使用 dosgi,您需要安装正确的功能。

这可以通过安装相应的功能来完成。

feature:install -v cxf-dosgi-base

这将为它安装所有必需的功能。如果自动发现其他节点,您需要为其安装相应的功能。

feature:list 

将为您提供所有可用功能的列表。

【讨论】:

    猜你喜欢
    • 2017-01-19
    • 1970-01-01
    • 2014-08-11
    • 2020-03-09
    • 2021-04-05
    • 1970-01-01
    • 2017-02-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多