无法在Juno中启动Eclipse RCP应用程序

4

我无法在新发布的juno中启动我的rcp应用程序,但在indigo中它运行良好。我发现有许多lucene捆绑包未解决。但是它们已添加到运行配置中所需的插件中。

有人有什么建议吗?谢谢!

!SESSION 2012-07-06 16:45:10.801 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=sv_SE
Framework arguments:  -product Myproduct.product
Command-line arguments:  -product Myproduct.product -data C:\Users\user\workspace/../runtime-Myproduct.product -dev file:C:/Users/user/workspace/.metadata/.plugins/org.eclipse.pde.core/Myproduct.product/dev.properties -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.equinox.app 0 0 2012-07-06 16:45:11.986
!MESSAGE Product Myproduct.product could not be found.

!ENTRY org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial@reference:file:plugins/org.apache.lucene.queries_3.5.0.v20120319-2345.jar was not resolved.

!SUBENTRY 2 org.apache.lucene.queries 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial@reference:file:plugins/org.apache.lucene.analysis_2.9.1.v201101211721.jar was not resolved.

!SUBENTRY 2 org.apache.lucene.analysis 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial@reference:file:plugins/org.apache.lucene.misc_3.5.0.v20120319-2345.jar was not resolved.
!SUBENTRY 2 org.apache.lucene.misc 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial@reference:file:plugins/org.apache.lucene_3.5.0.v20120319-2345.jar was not resolved.

!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).

!ENTRY org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.eclipse.help.base_3.6.100.v201206081400 [18] was not resolved.
!SUBENTRY 2 org.eclipse.help.base 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene_2.9.0.
!SUBENTRY 2 org.eclipse.help.base 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.analysis_2.9.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.eclipse.help.webapp_3.6.100.v20120521-2344 [21] was not resolved.
!SUBENTRY 2 org.eclipse.help.webapp 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.base_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene.analysis_2.9.1.v201101211721 [25] was not resolved.
!SUBENTRY 2 org.apache.lucene.analysis 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.eclipse.help.ui_3.5.200.v20120521-2344 [35] was not resolved.
!SUBENTRY 2 org.eclipse.help.ui 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.base_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene.queries_3.5.0.v20120319-2345 [39] was not resolved.
!SUBENTRY 2 org.apache.lucene.queries 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 2 org.apache.lucene.queries 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing optionally imported package org.apache.regexp_1.4.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene_3.5.0.v20120319-2345 [52] was not resolved.
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.misc_[3.5.0,4.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.queries_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene.misc_3.5.0.v20120319-2345 [79] was not resolved.
!SUBENTRY 2 org.apache.lucene.misc 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle Myproduct_1.0.0 [171] was not resolved.
!SUBENTRY 2 Myproduct 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.ui_3.5.101.
!SUBENTRY 2 Myproduct 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.webapp_3.6.0.

!ENTRY org.eclipse.osgi 4 0 2012-07-06 16:45:12.128
!MESSAGE Application error

!STACK 1
java.lang.RuntimeException: No application id has been found.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
3个回答

9

我通过启用Lucene插件的特定子集来解决了这个问题。

  • 打开您的插件/产品配置的运行配置对话框(Run -> Run Configurations...)
  • 选择“插件”选项卡
  • 在搜索字段中输入“lucene”。它应该显示以 org.apache.lucene* 开头的七个条目
  • 将所有2.9.1版本的内容标记为已启用
  • 将所有3.5.0版本的内容标记为已禁用
  • 单击验证插件,它应该显示“未检测到任何问题”

我给你点赞。我的问题不是出在相同的库上,而是相同的错误信息。使用“验证插件”帮助解决了这个问题——当出现问题时,它实际上会为您提供一个插件摘要,列出所有依赖项问题。非常方便,感谢Silpion。 - Ash
更新运行配置可以让我在IDE中解决同样的问题。但是每当我重新创建运行配置(在*.product编辑器中进行“同步”)或尝试“导出”产品时,问题就会重新出现:Eclipse为某些lucene插件选择了3.5.1版本,而不是2.9.1版本。我甚至在我的feature.xml中为所需的lucene插件放置了明确的版本号“2.9.1.v201101211721”,但Eclipse仍然选择了3.5.0版本。我做错了什么? - Kay

0
嗯。经过长时间的挣扎:
如果在插件概述选项卡上指定了错误的“执行环境”,则此错误也可能出现。例如,指定了JavaSE 1.7,即使您只有JavaSE 1.6。

0

这种方法只是让我更加困惑了 - Phaedrus

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接