Solved: java.lang.NoClassDefFoundError: Acme/Serve/Serve

Published: 04 Sep 2009

During the setup of testing some RESTful integration tests by extending org.jboss.resteasy.test.BaseResourceTest, I received the following error:

java.lang.NoClassDefFoundError: Acme/Serve/Serve

Not a very helpful error message is it?

This means you're missing the Tiny Java Web Server (TJWS) jar. Just add it to your classpath and you should be good to go. If you're using Maven, you can find the dependency here.