Thursday, April 30, 2015

Jetty missing NonBlockingThread

Got this error trying to start up a Jetty server:
2015-04-30 08:57:35.111:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.ServerConnector$ServerConnectorManager@5a24ad9b: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/NonBlockingThread
The fix was to add a Maven dependency for jetty-util. Apparently, jetty-server doesn't include it as a dependency; it just fails at runtime if it's not there.

No comments:

Post a Comment