简体   繁体   English

在eclipse中无法启动osgi容器(equinox)

[英]Cannot start osgi container (equinox) within eclipse

I've installed Eclipse Juno Service Release 2. I'm trying to learn OSGi using the Equinox container within eclipse. 我已经安装了Eclipse Juno Service Release 2.我正在尝试使用eclipse中的Equinox容器学习OSGi。 However, when I try to start Equinox from the command prompt using the following code, it does not start. 但是,当我尝试使用以下代码从命令提示符启动Equinox时,它无法启动。 Can someone please let me know what is missing here? 有人可以告诉我这里缺少什么吗?

java -jar org.eclipse.osgi_3.8.2.v20130124-134944.jar -console

Thanks! 谢谢!

I faced the same issue while moving from 3.5 to 3.8.2 . 我从3.5到3.8.2时遇到了同样的问题。 They changed the implementation of console which now relies on felix gogo project . 他们改变了控制台的实现,现在依赖于felix gogo项目 You will need to start the following bundles along with standard equinox : 您需要与标准的equinox一起启动以下软件包:

  1. org.eclipse.equinox.console_1.0.100.v20121001-124408.jar org.eclipse.equinox.console_1.0.100.v20121001-124408.jar
  2. org.apache.felix.gogo.shell_0.10.0.v201211091412.jar org.apache.felix.gogo.shell_0.10.0.v201211091412.jar
  3. org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar
  4. org.apache.felix.gogo.command_0.10.0.v201209301215.jar org.apache.felix.gogo.command_0.10.0.v201209301215.jar

You can add them to the list of bundles to start by default in the config.ini file as follows : 您可以将它们添加到bundle列表中,默认情况下在config.ini文件中启动,如下所示:

#contents of config.ini
osgi.bundles=org.eclipse.equinox.console_1.0.100.v20121001-124408.jar@start,org.apache.felix.gogo.shell_0.10.0.v201211091412.jar@start,org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar@start,org.apache.felix.gogo.command_0.10.0.v201209301215.jar@start

Your directory structure should be 你的目录结构应该是

- org.eclipse.osgi_3.8.2.v20130124-134944.jar
- configuration/
             config.ini

Yep, I see the same behavior. 是的,我看到了同样的行为。 After reading some of the beginner tutorial (yes I'm a beginner :-) at OSGi with Equinox for beginners: console, launcher and configuration I discovered that logs are sent to log files by default and to see them in stdout you need the -consoleLog paramter OSGi上阅读了一些初学者教程(是的,我是初学者:-),初学者使用Equinox:控制台,启动器和配置我发现默认情况下会将日志发送到日志文件,并且在stdout中看到它们需要 - consoleLog参数

java -jar org.eclipse.osgi_3.8.2.v20130124-134944.jar -console -consoleLog

Which then tells me the message 然后告诉我这个消息

org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console

I googled that which led me to here: org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console . 我用谷歌搜索了导致我到达的地方: org.osgi.framework.BundleException:找不到bundle:org.eclipse.equinox.console I didn't try it but it looks like the solution you need. 我没试过,但它看起来像你需要的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 以编程方式启动OSGi(Equinox)? - Programmatically Start OSGi (Equinox)? Eclipse Juno上的独立OSGi(Equinox)服务器 - Standalone OSGi (Equinox) server on Eclipse Juno OSGI容器标识Equinox / knopflerfish以及Equinox osgi jar和核心osgi jar之间的关系 - OSGI container identification Equinox / knopflerfish and relation ship between equinox osgi jar and core osgi jar Equinox 无法解析 org.eclipse.osgi.services 和 org.eclipse.equinox.cm - Equinox can´t resolve org.eclipse.osgi.services and org.eclipse.equinox.cm 有没有一种将Equinox源添加到Eclipse的好方法,以帮助调试OSGi捆绑软件? - Is there a good way to add Equinox source to Eclipse to help debugging an OSGi bundle? Eclipse PDE:重新捆绑捆绑到正在运行的Equinox osgi框架 - Eclipse PDE: Redeploy bundle to running equinox osgi framework 监控OSGi / Equinox - Monitoring on OSGi/Equinox 在RCP Eclipse插件开发过程中使用Eclipse版本和OSGi Equinox版本有什么区别? - Whats the difference between using Eclipse version and OSGi Equinox version during RCP Eclipse plugin development? “ org.eclipse.equinox.ds@3:start”背后的魔力? - The magic behind “org.eclipse.equinox.ds@3:start”? Equinox / OSGi / Eclipse插件开发:这些依赖关系来自何处以及如何指定其最低版本? - Equinox/OSGi/Eclipse plugin development: where do these dependencies come from and how do I specify their minimum versions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM