我使用以下2个命令在apache karaf中安装hawtio功能
功能:addurl mvn:io.hawt / hawtio-karaf / 1.4.17 / xml / features 功能:安装hawtio
当我运行"功能时:安装hawtio"我收到以下错误
"执行命令时出错:无法在功能中启动软件包mvn:io.hawt / hawtio-osgi-jmx / 1.4.17 hawtio-core-1.4.17:软件包io中的激活器启动错误。 hawt.hawtio-osgi-jmx [286]"
你能帮我解决这个问题。
答案 0 :(得分: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的数据/日志目录。
答案 1 :(得分:0)
我使用的是错误的Java版本,我使用的是1.6.x兼容版本的hawtio 1.4.17是Java 1.7.x