2015-03-25 61 views
2

我试图在Karaf 4.0.0M2中安装ActiveMQ。在Apache Karaf 4.0.0.M2中安装ActiveMq

但它总是失败并出现错误。请参阅下面的控制台。请帮我解决这个问题。

[email protected]()> feature:install jms 
[email protected]()> feature:repo-add activemq 
Adding feature url mvn:org.apache.activemq/activemq-karaf/LATEST/xml/features 
[email protected]()> feature:install activemq-broker 
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=activemq-web-console 
; type=karaf.feature; version=5.12.0.SNAPSHOT [caused by: Unable to resolve activemq-web-console/5.12.0.SNAPSHOT: missing req 
uirement [activemq-web-console/5.12.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.activemq.activemq-web-console; type=o 
sgi.bundle; version="[5.12.0.SNAPSHOT,5.12.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.activ 
emq.activemq-web-console/5.12.0.SNAPSHOT: missing requirement [org.apache.activemq.activemq-web-console/5.12.0.SNAPSHOT] osgi 
.wiring.package; filter:="(&(osgi.wiring.package=javax.servlet.resources)(version>=2.5.0)(!(version>=4.0.0)))"]] 
[email protected]()> 

回答

0

安装no web功能。 - 我认为它称为-noweb或没有Web控制台或类似的

feature:install activemq-broker-noweb 

东西的ActiveMQ的Web控制台不支持karaf 4.

你可以尝试安装hawtio如果你想为一个的ActiveMQ Web控制台,并其他Java的东西它hawtio可以做

+0

并没有为我工作: karaf @ root()>功能:安装activemq-broker-noweb 执行命令时出错:无法解析root:缺少需求[root] osgi.identity; osgi.identity = activemq-broker-noweb; ... – 2015-05-07 19:10:23

+0

正如所说的ActiveMQ还不支持Karaf 4.另外Karaf 4不是GA,它还是一个里程碑版本。使用较旧版本的Karaf,如3或2.4。 – 2015-05-08 04:32:38

+0

同意,克劳斯,对不起,我不是更清楚,只是想说,不幸的是,activemq-broker-noweb不能与4.0.0M2一起工作(因为它被认为是一种可能性)。我现在用3.0.3亲自测试。感谢您多年来的持续和巨大的帮助! – 2015-05-08 13:00:32