Running Jetty 7 server in eclipse?

Posted by jh314159 on Stack Overflow See other posts from Stack Overflow or by jh314159
Published on 2010-03-10T09:39:04Z Indexed on 2010/05/28 18:42 UTC
Read the original article Hit count: 761

Filed under:
|
|

I'm trying to set up Eclipse to run and deploy my projects to a Jetty 7 server (the oldest version available from http://download.eclipse.org/jetty/). I've downloaded Jetty 7 and unpacked it, and I've installed the Jetty plugin from the available server adapters list, but when I try to configure a new Jetty server, the server type list only contains "Jetty 6". If I use this and point it at my server runtime, when I try to start it I get the following error:

java.lang.NoClassDefFoundError: org/mortbay/start/Main
Caused by: java.lang.ClassNotFoundException: org.mortbay.start.Main
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main" 

I'm guessing I need a different adaptor to start Jetty 7, but I have no idea where to find it.

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about java-ee