NoClassDefFoundError while starting up jetty Server NoClassDefFoundError while starting up jetty Server linux linux

NoClassDefFoundError while starting up jetty Server


As Stevie pointed out in the comments,the issue was an additional Jar file which got into the war.

I removed the Jar, in my case spring-webmvc-3.1.0.M1.jar, from WEB-INF/lib and restarted jetty.It started up fine.

This went unnoticed as it dint show up during compile/build time (got the jar ordered in eclipse), nor did it showed up in the first machine i deployed.

Many thanks for the help.


You can change your project config, like I use maven like this page.http://mvnrepository.com/artifact/redis.clients/jedis/2.8.1

Then, when you use "update maven project" in eclipse et, it will downloadthe jedis.jar and other relationship files for complier. It will work in jetty to fix problem.


In the case you use directly jetty as Eclipse J2EE integrated server, sometimes, it doesn't find some libraries (I don't understand why some are not found, by only a few), and throws exception of this kind (NoClassDefFound).

  • So you have to put in the project source (directory WEB-INF): your jars

  • restart the server

  • it put the jars in runtime WEB-INF: Data\workspace.metadata.plugins\org.eclipse.wst.server.core\tmpX\MyApp\WEB-INF\lib

  • and it works.