代码之家  ›  专栏  ›  技术社区  ›  Alwin Doss

无法在apache karaf中安装hawtio功能

  •  0
  • Alwin Doss  · 技术社区  · 12 年前

    我使用以下两个命令在apachekaraf中安装hawtio功能

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

    当我运行“features:installHawtio”时,我收到以下错误

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

    你能帮我修一下吗。

    2 回复  |  直到 12 年前
        1
  •  1
  •   Claus Ibsen    12 年前

    对我来说很好

    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目录。

        2
  •  0
  •   Alwin Doss    12 年前

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