【问题标题】:Equinox start error (console bundle is missed)Equinox 启动错误(缺少控制台捆绑包)
【发布时间】:2012-04-11 22:23:24
【问题描述】:
java.version=1.6.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
 Command-line arguments:  -console -configuration runtime

ENTRY org.eclipse.osgi 4 0 2012-03-28 15:50:09.721
 !MESSAGE Could not find bundle: org.eclipse.equinox.console
!STACK 0`enter code here`
org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
at          org.eclipse.osgi.framework.internal.core.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:211)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:297)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:151)

!ENTRY org.eclipse.osgi 4 0 2012-03-28 15:50:09.737
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:151)

【问题讨论】:

标签: osgi equinox


【解决方案1】:

控制台功能已从 Equinox 系统捆绑包中删除。现在应该显式安装它(felix gogo 控制台)。

下载 Equinox SDK 并将此类文件复制到您的 Equinox 插件文件夹:

org.apache.felix.gogo.command_0.8.0.v201108120515.jar org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar org.apache.felix.gogo.shell_0.8.0.v201110170705.jar org.eclipse.equinox.console_1.0.0.v20111215-1210.jar

更新配置文件夹中的 config.ini 并将此类子字符串添加到属性 osgi.bundles

参考:文件:org.eclipse.equinox.console_1.0.0.v20111215-1210.jar@4,参考:文件:org.apache.felix.gogo.shell_0.8.0.v201110170705.jar@4,参考:文件:org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar@4,参考:文件:org.apache.felix.gogo.command_0.8.0.v201108120515.jar@4,

【讨论】:

  • 链接好像坏了
【解决方案2】:

此链接提供有关基于 Apache Felix Gogo shell 的新控制台的所有详细信息:http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fconsole_shell.htm

简短的步骤是:

  1. 将必要的捆绑包放在一个文件夹中。捆绑包是:

    • org.apache.felix.gogo.command_0.8.0v<version>.jar
    • org.apache.felix.gogo.runtime_0.8.0v<version>.jar
    • org.apache.felix.gogo.shell_0.8.0v<version>.jar
    • org.eclipse.equinox.console_1.0.0v<version>.jar
    • org.eclipse.osgi.jar
  2. 创建一个configuration 子文件夹,将一个新的config.ini 文件放入其中,内容如下:

    osgi.bundles=./org.apache.felix.gogo.runtime_0.8.0v<version>.jar@start,\
    ./org.apache.felix.gogo.command_0.8.0v<version>.jar@start,\
    ./org.apache.felix.gogo.shell_0.8.0v<version>.jar@start,\
    ./org.eclipse.equinox.console.jar@start,\
    osgi.console.enable.builtin=false
    osgi.console=<port> 
    
  3. 使用以下命令启动 Equinox 框架:

    java -jar org.eclipse.osgi.jar
    

【讨论】:

    【解决方案3】:
    • 转到META-INF/MANIFEST.MF

    • 右键Run As/Run Configuration/RAP Application/(Select entry point under this tree node)

    • 选择Tab Bundles/

    • 查看org.apache.felix.gogo.command , org.apache.felix.gogo.runtime , org.apache.felix.gogo.shell , org.eclipse.equinox.console

    • 单击添加所需的捆绑包

    • 点击验证捆绑包 ==> No Problem was detected

    • 申请。

    现在运行正常。

    【讨论】:

      【解决方案4】:

      在上面的config.ini osgi.console.enable.builtin=false 不能与osgi.bundles 属性在同一行。官方文档好像也有这个错误。

      我的config.ini 看起来像:

      osgi.bundles=./org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar@start,\
      ./org.apache.felix.gogo.command_0.10.0.v201209301215.jar@start,\
      ./org.apache.felix.gogo.shell_0.10.0.v201212101605.jar@start,\
      ./org.eclipse.equinox.console.jar@start
      osgi.console.enable.builtin=false
      osgi.console=4711
      

      【讨论】:

        【解决方案5】:

        缺少必要的捆绑包。 将它们添加到运行方式->运行配置->osgi框架->捆绑包 添加以下捆绑包以及您自己的捆绑包并删除其他捆绑包: org.apache.felix.gogo.command_0.8.0.v201108120515.jar

        org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar

        org.apache.felix.gogo.shell_0.8.0.v201110170705.jar

        org.eclipse.equinox.console_1.0.0.v20111215-1210.jar

        然后点击应用并运行。

        【讨论】:

          猜你喜欢
          • 2014-06-26
          • 2019-10-11
          • 2013-05-29
          • 1970-01-01
          • 2014-01-20
          • 2014-11-02
          • 2018-05-10
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多