Note that there are some explanatory texts on larger screens.

plurals
  1. POstarting jetty8 ClassNotFoundException: HttpServletResponse
    text
    copied!<p>Why is my Jetty 8 startup failing with a ClassNotFoundException for HttpServlet response? What step have I missed?</p> <p>Running on Ubuntu 12.04.03</p> <p>I installed openjdk 7 with:</p> <p>sudo apt-get install openjdk-7-jdk</p> <ul> <li>installed jetty 8 with:</li> </ul> <p>sudo apt-get install jetty8</p> <ul> <li>modified the /etc/default/jetty8 file to set NO_START=0 &amp; the JAVA_HOME=... value.</li> </ul> <p>But when I start jetty with "service jetty8 start" it fails, and the /var/log/start.log shows:</p> <p>Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletResponse</p> <p>The full stack trace is:</p> <pre><code>java.lang.reflect.InvocationTargetException 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:606) at org.eclipse.jetty.start.Main.invokeMain(Main.java:457) at org.eclipse.jetty.start.Main.start(Main.java:602) at org.eclipse.jetty.start.Main.main(Main.java:82) Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletResponse at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483) at java.lang.Class.getConstructor0(Class.java:2793) at java.lang.Class.newInstance(Class.java:345) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:333) at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:291) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1203) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138) ... 7 more Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletResponse at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 16 more Usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help # for more information </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload