FakeHttpServer breaks when upgrading to Jetty 9

3

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

    
asked by anonymous 18.05.2015 / 19:47

1 answer

0

As Joakim Erdfelt answered in English in Stack Overflow in English, the only way out is to update FakeHttpServer. Be persuading the original authors to do it, that is doing it myself.

Source: link

    
20.05.2015 / 20:22