I'm migrating an application that used Jetty 7.4.5.v20110725
to Jetty 9.3.0.M2
, using Maven
. I've already updated javax.servlet-api
to versão 3.1.0
.
But, I'm using FakeHttpServer version 0.3.0 for testing, and at the moment there is no newer version. It uses the org.eclipse.jetty.server.nio.SelectChannelConnector
class that used to exist up to Jetty 8.x, but no longer exists in Jetty 9.
At this point, my project breaks at runtime with a NoClassDefFoundError
because of the removed Jetty class that FakeHttpServer tries to use, preventing me from completing the Jetty upgrade. How can I fix this?
Note: this was also posted in StackOverflow in English: link