Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-4149

Run Browsersim > java.lang.NoClassDefFoundError: javax/servlet/Servlet on exit

    Details

    • Steps to Reproduce:
      Hide
      1. Install yum repositories rh-eclipse46.repo and rh-eclipse46-devstudio-snapshots-10_2.repo
      2. sudo yum install rh-eclipse46-base
      3. sudo yum install rh-eclipse46-devstudio
        (rh-eclipse46-devstudio-10.2-0.20161028.1735.el7.x86_64 in my case)
      4. Quick Access > Run Browsersim
      5. right-click browsersim window and select Close
      6. error appears in Console
      Show
      Install yum repositories rh-eclipse46.repo and rh-eclipse46-devstudio-snapshots-10_2.repo sudo yum install rh-eclipse46-base sudo yum install rh-eclipse46-devstudio (rh-eclipse46-devstudio-10.2-0.20161028.1735.el7.x86_64 in my case) Quick Access > Run Browsersim right-click browsersim window and select Close error appears in Console
    • Docs QE Status:
      NEW

      Description

      I launch the browsersim (from Quick Access > Run Browsersim), and then exit the sim (right-click > Close), this error appears:

      javax/servlet/Servlet
      Stack trace:
      java.lang.NoClassDefFoundError: javax/servlet/Servlet
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:264)
      	at org.jboss.tools.browsersim.ui.util.ReflectionUtil.call(ReflectionUtil.java:21)
      	at org.jboss.tools.browsersim.ui.BrowserSim$3.widgetDisposed(BrowserSim.java:201)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:124)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1366)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1345)
      	at org.eclipse.swt.widgets.Widget.release(Widget.java:1153)
      	at org.eclipse.swt.widgets.Control.release(Control.java:3988)
      	at org.eclipse.swt.widgets.Widget.dispose(Widget.java:479)
      	at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2666)
      	at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:670)
      	at org.eclipse.swt.widgets.Shell.close(Shell.java:665)
      	at org.jboss.tools.browsersim.ui.menu.BrowserSimMenuCreator$9.widgetSelected(BrowserSimMenuCreator.java:263)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4553)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4143)
      	at org.jboss.tools.browsersim.ui.launch.BrowserSimRunner.main(BrowserSimRunner.java:127)
      Caused by: java.lang.ClassNotFoundException: javax.servlet.Servlet
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 24 more
      

      So... Maybe another javax.servlet requirement that's not properly defined?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ibuziuk Ilya Buziuk
                  Reporter:
                  lvalach Lukáš Valach
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: