[英]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一起启动以下软件包:
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.