Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you set up jetty-start with Maven?
    primarykey
    data
    text
    <p><strong>I'm trying to get Maven to automatically download all dependencies for jetty-start so I run this:</strong></p> <pre><code>java start.jar etc/jetty.xml </code></pre> <p>But when I do this:</p> <pre><code>java start.jar --list-options </code></pre> <p>I get several missing modules that I have to manually add as dependencies to my Maven file. I've tried adding them, and I get stuck on finding an appropriate version of <code>servlet-api</code> that will provide <code>javax.servlet.http.HttpServletResponse</code>, even though the jar downloaded for <code>jetty-servlet</code> has <code>javax/servlet/http/HttpServletResponse.class</code> inside it. Here is the error:</p> <pre><code>java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) 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:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 17 more </code></pre> <p>I've tried adding the <code>org.eclipse.jetty.aggregate:jetty-all</code> package to my dependency list, but the packages inside it are not detected by <code>java start.jar --list-options</code>, and therefore don't work.</p> <p>There are a couple of pages of documentation that are helpful, but don't answer this question specifically:</p> <ul> <li><a href="http://wiki.eclipse.org/Jetty/Howto/Use_Jetty_with_Maven" rel="nofollow">Use Jetty with Maven</a></li> <li><a href="http://wiki.eclipse.org/Jetty/Feature/Start.jar" rel="nofollow">Jetty Feature Start.jar</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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