Bug 545893 - ClassNotFoundException org.eclipse.jetty.util.Decorator
Summary: ClassNotFoundException org.eclipse.jetty.util.Decorator
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 blocker with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportDesigner CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-28 10:45 EDT by Virginie KEIFLIN CLA
Modified: 2019-10-10 09:43 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Virginie KEIFLIN CLA 2019-03-28 10:45:41 EDT
Hello,
I just installed the latest version of Birt (2019-03)
I run Birt, create a new project and inside this project I create a new report
When I click on the 'View Report' button, I have this error

Mar 28, 2019 3:19:59 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @142225ms to org.eclipse.jetty.util.log.JavaUtilLog
Mar 28, 2019 3:20:00 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome
WARNING: No default jetty created.
Mar 28, 2019 3:20:00 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.5.v20170502
Mar 28, 2019 3:20:00 PM org.eclipse.jetty.deploy.DeploymentManager requestAppGoal
WARNING: Unable to reach node goal: started
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/Decorator
        at org.eclipse.jetty.osgi.boot.AbstractWebAppProvider$OSGiApp.newWebApp(AbstractWebAppProvider.java:194)
[...]
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.Decorator cannot be found by org.eclipse.jetty.servlet_9.4.5.v20170502
[...]
Mar 28, 2019 3:20:00 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@7d82eeb9{HTTP/1.1,[http/1.1]}{127.0.0.1:54257}
Mar 28, 2019 3:20:00 PM org.eclipse.jetty.server.Server doStart
INFO: Started @142723ms
Mar 28, 2019 3:20:00 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.JettyServerServiceTracker addingService
INFO: Started Server org.eclipse.birt.report.viewer.server


In 'plugins' folder, I have 
- org.eclipse.jetty.util_9.4.5.v20170502.jar
- org.eclipse.jetty.util_9.4.15.v20190215.jar
In each one, I have Decorator.class
Comment 1 Séb l CLA 2019-05-21 05:28:27 EDT
Hello,

I have the same problem.
To repair you must follow these steps : 
- Exit eclipse
- In directory plugins from eclipse installation, delete all org.eclipse.jetty jar files to keep only version 9.4.5. I deleted this files : 
    * org.eclipse.jetty.http_9.4.15.v20190215.jar
    * org.eclipse.jetty.io_9.4.15.v20190215.jar
    * org.eclipse.jetty.security_9.4.15.v20190215.jar
    * org.eclipse.jetty.server_9.4.15.v20190215.jar
    * org.eclipse.jetty.servlet_9.4.15.v20190215.jar
    * org.eclipse.jetty.util_9.4.15.v20190215.jar
    * org.eclipse.jetty.webapp_9.4.14.v20181113.jar
    *org.eclipse.jetty.xml_9.4.14.v20181113.jar
- Restart eclipse

For me it's work. Good luck !
Comment 2 Beat Kappert CLA 2019-10-10 09:43:05 EDT
Same problem here on Mac OS X El Capitan.

Eclipse:
Version: Photon Release (4.8.0)
Build id: 20180619-1200

All I had to do is get rid of one file:

rm /Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.jetty.util_9.4.10.v20180503.jar