jboss - 安装 JBoss Tools 后 Eclipse 失败

标签 jboss nashorn jboss-tools jsdt fedora-25

安装 JBoss Tools 并重新启动 Eclipse IDE 后,出现以下异常:

An error has occured. See the log file /home/abc/workspace/.metadata/.log

Eclipse 不再启动。有人可以帮我解决这个问题吗?

我的设置:

日志文件:

!SESSION Wed Mar 22 21:41:43 CET 2017 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2017-03-22 21:41:43.812
!MESSAGE Could not find extension: org.eclipse.wst.jsdt.nashorn.extension
!SESSION 2017-03-22 21:41:43.742 -----------------------------------------------
eclipse.buildId=4.6.2.v20170109-1424
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_CH
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2017-03-22 21:41:44.473
!MESSAGE Bundle org.eclipse.wst.jsdt.nashorn.extension not found.

!ENTRY org.jboss.tools.vpe.cordovasim.eclipse 4 0 2017-03-22 21:41:45.447
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.jboss.tools.vpe.cordovasim.eclipse [1051]
  Unresolved requirement: Require-Bundle: org.jboss.tools.vpe.cordovasim; bundle-version="3.5.0"
    -> Bundle-SymbolicName: org.jboss.tools.vpe.cordovasim; bundle-version="3.5.1.Final-v20140303-0018-B169"
       org.jboss.tools.vpe.cordovasim [1050]
         No resolution report for the bundle.  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"] because it is exposed to package 'org.eclipse.jetty.continuation' from resources org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"] and org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"] via two dependency chains.

Chain 1:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.continuation)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"]

Chain 2:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.servlets)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle; bundle-version:Version="8.1.10.v20130312"; osgi.wiring.bundle="org.eclipse.jetty.servlets"
  org.eclipse.jetty.servlets [osgi.identity; type="osgi.bundle"; version:Version="8.1.10.v20130312"; osgi.identity="org.eclipse.jetty.servlets"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.server)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package=org.eclipse.jetty.server; uses:=org.eclipse.jetty.continuation
  org.eclipse.jetty.server [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.server"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.continuation)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.ui 2 0 2017-03-22 21:41:47.664
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 2 0 2017-03-22 21:41:47.664
!MESSAGE Commands should really have a category: plug-in='net.sf.eclipsecs.ui', id='CheckstylePlugin.PurgeCaches', categoryId='net.sf.eclipsecs'

!ENTRY org.eclipse.ui 2 0 2017-03-22 21:41:48.283
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 2 0 2017-03-22 21:41:48.283
!MESSAGE Commands should really have a category: plug-in='net.sf.eclipsecs.ui', id='CheckstylePlugin.PurgeCaches', categoryId='net.sf.eclipsecs'

!ENTRY org.jboss.tools.xulrunner.initializer 2 0 2017-03-22 21:41:50.274
!MESSAGE Could not resolve module: org.jboss.tools.xulrunner.initializer [1068]
  Unresolved requirement: Fragment-Host: org.eclipse.swt
  Unresolved requirement: Fragment-Host: org.eclipse.swt


!ENTRY org.jboss.tools.vpe.cordovasim.eclipse 2 0 2017-03-22 21:41:50.281
!MESSAGE Could not resolve module: org.jboss.tools.vpe.cordovasim.eclipse [1051]
  Unresolved requirement: Require-Bundle: org.jboss.tools.vpe.cordovasim; bundle-version="3.5.0"
    -> Bundle-SymbolicName: org.jboss.tools.vpe.cordovasim; bundle-version="3.5.1.Final-v20140303-0018-B169"
       org.jboss.tools.vpe.cordovasim [1050]
         Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"] because it is exposed to package 'org.eclipse.jetty.continuation' from resources org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"] and org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"] via two dependency chains.

Chain 1:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.continuation)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"]

Chain 2:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.servlets)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle; bundle-version:Version="8.1.10.v20130312"; osgi.wiring.bundle="org.eclipse.jetty.servlets"
  org.eclipse.jetty.servlets [osgi.identity; type="osgi.bundle"; version:Version="8.1.10.v20130312"; osgi.identity="org.eclipse.jetty.servlets"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.server)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package=org.eclipse.jetty.server; uses:=org.eclipse.jetty.continuation
  org.eclipse.jetty.server [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.server"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.continuation)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"]  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"] because it is exposed to package 'org.eclipse.jetty.continuation' from resources org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"] and org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"] via two dependency chains.

Chain 1:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.continuation)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"]

Chain 2:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.servlets)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle; bundle-version:Version="8.1.10.v20130312"; osgi.wiring.bundle="org.eclipse.jetty.servlets"
  org.eclipse.jetty.servlets [osgi.identity; type="osgi.bundle"; version:Version="8.1.10.v20130312"; osgi.identity="org.eclipse.jetty.servlets"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.server)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package=org.eclipse.jetty.server; uses:=org.eclipse.jetty.continuation
  org.eclipse.jetty.server [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.server"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.continuation)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"]

!ENTRY org.jboss.tools.foundation.security.linux 2 0 2017-03-22 21:41:50.282
!MESSAGE Could not resolve module: org.jboss.tools.foundation.security.linux [997]
  Unresolved requirement: Fragment-Host: org.eclipse.equinox.security; bundle-version="1.1.100"
  Unresolved requirement: Fragment-Host: org.eclipse.equinox.security; bundle-version="1.1.100"


!ENTRY org.jboss.tools.vpe.cordovasim 2 0 2017-03-22 21:41:50.282
!MESSAGE Could not resolve module: org.jboss.tools.vpe.cordovasim [1050]
  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"] because it is exposed to package 'org.eclipse.jetty.continuation' from resources org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"] and org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"] via two dependency chains.

Chain 1:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.continuation)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="9.4.0.M0"; osgi.identity="org.eclipse.jetty.continuation"]

Chain 2:
  org.jboss.tools.vpe.cordovasim [osgi.identity; type="osgi.bundle"; version:Version="3.5.1.Final-v20140303-0018-B169"; osgi.identity="org.jboss.tools.vpe.cordovasim"]
    require: (&(osgi.wiring.bundle=org.eclipse.jetty.servlets)(bundle-version>=8.1.3))
     |
    provide: osgi.wiring.bundle; bundle-version:Version="8.1.10.v20130312"; osgi.wiring.bundle="org.eclipse.jetty.servlets"
  org.eclipse.jetty.servlets [osgi.identity; type="osgi.bundle"; version:Version="8.1.10.v20130312"; osgi.identity="org.eclipse.jetty.servlets"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.server)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package=org.eclipse.jetty.server; uses:=org.eclipse.jetty.continuation
  org.eclipse.jetty.server [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.server"]
    import: (&(osgi.wiring.package=org.eclipse.jetty.continuation)(&(version>=8.1.0)(!(version>=9.0.0))))
     |
    export: osgi.wiring.package: org.eclipse.jetty.continuation
  org.eclipse.jetty.continuation [osgi.identity; type="osgi.bundle"; version:Version="8.1.14.v20131031"; osgi.identity="org.eclipse.jetty.continuation"]

!ENTRY org.eclipse.osgi 4 0 2017-03-22 21:41:50.282
!MESSAGE Application error
!STACK 1
org.eclipse.e4.ui.css.core.sac.ParserNotFoundException: java.lang.ClassCastException: org.apache.batik.css.parser.Parser cannot be cast to org.w3c.css.sac.Parser
    at org.eclipse.e4.ui.css.core.impl.dom.parsers.AbstractCSSParser.getParser(AbstractCSSParser.java:149)
    at org.eclipse.e4.ui.css.core.impl.dom.parsers.AbstractCSSParser.parseStyleSheet(AbstractCSSParser.java:58)
    at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.parseStyleSheet(AbstractCSSEngine.java:183)
    at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.setTheme(ThemeEngine.java:428)
    at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.setTheme(ThemeEngine.java:389)
    at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.setTheme(ThemeEngine.java:381)
    at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.restore(ThemeEngine.java:568)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.setCSSTheme(PartRenderingEngine.java:1399)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.initializeStyling(PartRenderingEngine.java:1292)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1026)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: java.lang.ClassCastException: org.apache.batik.css.parser.Parser cannot be cast to org.w3c.css.sac.Parser
    at org.eclipse.e4.ui.css.core.impl.sac.SACParserFactoryImpl.makeParser(SACParserFactoryImpl.java:49)
    at org.eclipse.e4.ui.css.core.sac.SACParserFactory.makeParser(SACParserFactory.java:36)
    at org.eclipse.e4.ui.css.core.impl.dom.parsers.AbstractCSSParser.getParser(AbstractCSSParser.java:139)
    ... 30 more

最佳答案

您从此更新站点获取的 JBoss 工具版本是 2014 年的。它太旧了。正确的更新站点链接是:http://download.jboss.org/jbosstools/neon/stable/updates/ .

目前最新稳定版本为4.4.3.Final:http://tools.jboss.org/downloads/jbosstools/neon/4.4.3.Final.html

其他版本(开发版和夜间版)您可以在这里找到:http://tools.jboss.org/downloads/jbosstools/neon/index.html

将 jbosstools 插件安装到 Eclipse 的最佳且最简单的方法是使用 Eclipse Marketplace 插件:https://marketplace.eclipse.org/content/jboss-tools .

旧的但仍然真实的视频,其中包含如何通过 Eclipse Marketplace 插件安装 JBoss Tools 的说明:http://tools.jboss.org/downloads/installation.html

关于jboss - 安装 JBoss Tools 后 Eclipse 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42962415/

相关文章:

java - 为 Nashorn 脚本引擎定义默认/全局 Java 对象?

wildfly - 在 Keycloak 中测试/调试 javascript 映射器/策略的最佳方法

java - JPA2(JBoss7.1的Hibernate)entityManager.find()从缓存而不是从数据库获取数据

java - 远程连接到 JBoss 7.1.1 MBean

javascript - 将对象的成员函数公开为全局函数

java - 将 React 与 Nashorn 一起使用会抛出 "ReferenceError: "控制台“未定义”

nginx - keycloak (Nginx) 的反向代理配置

xml - 引用的文件包含错误 (jar :file:/. ../plugins/org.jboss.tools.jst.web_3.5.0.Final-v20130717-0309-B75.jar!/catalog/web-facesconfig_2_2.xsd)

xml - 如何提高基于 MQ 的批处理应用程序的性能?

java - 停止/禁用 Apache 下的特定网络服务