BIRTjava.lang.NoClassDefFoundError:org / eclipse / jetty / util / Decorator

时间:2018-02-08 06:54:41

标签: eclipse jetty birt

我安装了64位Oxygen.2并通过“更新软件”安装了BIRT Framework 当尝试从BIRT的GUI渲染报告(任何格式)时,我收到以下错误:

java.lang.NoClassDefFoundError:org / eclipse / jetty / util / Decorator     在org.eclipse.birt.report.viewer.utilities.ViewerWebApp.start(ViewerWebApp.java:40)     在org.eclipse.birt.report.viewer.utilities.AppServerWrapper.startJettyServer(AppServerWrapper.java:256)     在org.eclipse.birt.report.viewer.utilities.AppServerWrapper.start(AppServerWrapper.java:155)     在org.eclipse.birt.report.viewer.utilities.WebappAccessor.start(WebappAccessor.java:72)     在org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebViewer.java:827)     在org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.java:1078)     在org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.java:1073)     在org.eclipse.birt.report.designer.ui.actions.PreviewSupport.preview(PreviewSupport.java:402)     在org.eclipse.birt.report.designer.ui.actions.PreviewSupport $ 3.widgetSelected(PreviewSupport.java:245)     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)     在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)     在org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)     在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)     在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)     在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)     在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 5.run(PartRenderingEngine.java:1150)     在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)     在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)     在org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)     在org.eclipse.ui.internal.Workbench.lambda $ 3(Workbench.java:680)     在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)     在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)     在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)     在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)     在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)     在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)     在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)     在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)     在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)     在org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)     在org.eclipse.equinox.launcher.Main.run(Main.java:1499)
引起:java.lang.ClassNotFoundException:org.eclipse.jetty.servlet_9.4.5.v20170502无法找到org.eclipse.jetty.util.Decorator     在org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)     在org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)     在org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)     在org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)     at java.lang.ClassLoader.loadClass(Unknown Source)     ......还有36个

任何人都知道如何解决这个问题?

3 个答案:

答案 0 :(得分:7)

更新04/04/18 - 在解决问题的第一个bug中报告了一个解决方法。将附加到bug的插件文件复制到" dropins" Eclipse的文件夹安装并重新启动。它对我有用。

Eclipse的Bugzilla中有两个与此错误相关的错误:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=517662(此处有解决方法)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=529990

答案 1 :(得分:2)

看来与安装程序的集成尚未准备好。

当前(BIRT 4.8.0),最简单的解决方案是从https://download.eclipse.org/birt/downloads/

下载多合一选项

在撰写本文时,此发行版包括Eclipse Photon,并具有呈现报告所需的所有插件。

如果必须使用Oxygen,可以在以下位置找到旧版本的链接: https://download.eclipse.org/birt/downloads/build_list.php。我只测试了4.8.0,所以我不知道哪个较旧的版本能正常工作

答案 2 :(得分:0)

我在eclipse.org“ Eclipse for Java and Report Developers下载链接”中安装的Eclipse 4.11遇到此错误。令人困惑的是,该版本的Eclipse似乎已经发行了数年(最新版本为4.8.0)的BIRT版本4.7.0。

上面由克劳斯(Krauss)链接的BIRT页面具有指向“多合一”下载的链接,但它是带有BIRT 4.6.0的Eclipse Neon(4.6)!但是,好消息是,至少对于我来说,此版本没有此错误。

我对整个情况非常困惑

TL; DR下载并使用此旧版本:

https://www.eclipse.org/downloads/packages/release/neon/r/eclipse-ide-java-and-report-developers