简体   繁体   English

在karaf 3.0.3中安装CXF时出现问题

[英]Problems installing CXF in karaf 3.0.3

I have an odd dependency problem when trying to install distributed cxf 1.6.0 on Karaf 3.0.3. 尝试在Karaf 3.0.3上安装分布式cxf 1.6.0时,我遇到一个奇怪的依赖问题。

I am still on a tutorial basis when it comes to Karaf, so i have no idea what i am missing. 关于Karaf,我仍然处于教程阶段,所以我不知道自己缺少什么。 2 hours of googling turned up little joy. 2个小时的谷歌搜索几乎没有带来欢乐。

I tried to follow install the simple greeter service from the cxf dosgi page but trying to install the cxf feature kind of stops me dead in my tracks. 我试图按照以下步骤从cxf dosgi页安装简单的greeter服务,但是尝试安装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)

What exactly am i missing here? 我到底在这里想念什么? I see that a spring dependency is missing, but how do i fix it. 我看到缺少弹簧依赖项,但是我该如何解决。 I can't seem to find that bundle anywhere, and why doens't karaf just grab it? 我似乎在任何地方都找不到那个捆绑包,为什么卡拉夫不抢它呢?

Karaf is easy to use with features. Karaf具有易于使用的功能。 In your case you just need to add the cxf-dosgi repo, this you have done already correctly. 在您的情况下,您只需要添加cxf-dosgi存储库,就可以正确完成此操作。 To use dosgi you'll need to install the correct feature. 要使用dosgi,您需要安装正确的功能。

This can be done by installing the corresponding feature. 这可以通过安装相应的功能来完成。

feature:install -v cxf-dosgi-base

This will install all required features for it. 这将为其安装所有必需的功能。 In case of automatic discovery of other nodes you'll need to install the corresponding feature for it. 如果自动发现其他节点,则需要为其安装相应的功能。

feature:list 

will give you a list of all available features. 将为您提供所有可用功能的列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM