0

我使用以下 2 个命令在 apache karaf 中安装 hawtio 功能

功能:addurl mvn:io.hawt/hawtio-karaf/1.4.17/xml/features 功能:安装hawtio

当我运行“功能:安装 hawtio”时,出现以下错误

“执行命令时出错:无法在功能 hawtio-core-1.4.17 中启动捆绑 mvn:io.hawt/hawtio-osgi-jmx/1.4.17:捆绑 io.hawt.hawtio-osgi-中的激活器启动错误jmx [286]"

你能帮我解决这个问题吗?

4

2 回答 2

1

对我来说很好

davsclaus:/opt/apache-karaf-2.3.7/$ bin/karaf
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (2.3.7)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'osgi:shutdown' or 'logout' to shutdown Karaf.

karaf@root> features:addurl mvn:io.hawt/hawtio-karaf/1.4.17/xml/features
karaf@root> features:install hawtio
karaf@root> web:list
   ID   State         Web-State       Level  Web-ContextPath           Name
[  86] [Active     ] [Deployed   ]  [   80] [/hawtio                 ] hawtio :: hawtio-web (1.4.17)
[  88] [Active     ] [Deployed   ]  [   80] [/hawtio-karaf-terminal  ] hawtio :: Karaf terminal plugin (1.4.17)
karaf@root>

顺便说一句,有添加hawtio的快捷方式,通过

 features:chooseurl hawtio 1.4.17

所以你需要检查日志是什么失败了,你可以使用log:display或检查 Apache Karaf 的 data/logs 目录。

于 2014-09-10T15:33:27.730 回答
0

我使用了错误的 Java 版本,我使用的是 1.6.x,hawtio 1.4.17 的兼容版本是 Java 1.7.x

于 2014-09-23T09:51:30.953 回答