Home:ALL Converter>FakeHttpServer breaks when upgrading to Jetty 9

FakeHttpServer breaks when upgrading to Jetty 9

Ask Time:2015-05-19T01:41:43         Author:Victor Stafusa - BozoNaCadeia

Json Formatter

I am migrating an application that used Jetty 7.4.5.v20110725 to Jetty 9.3.0.M2, using Maven. I already had upgraded the javax.servlet-api to 3.1.0.

But I am using the FakeHttpServer version 0.3.0 for tests, and at this time 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 does not exists anymore in Jetty 9.

Currently my projects breaks at runtime with a NoClassDefFoundError due to the removed class in Jetty that FakeHttpServer tries to use, holding me back from upgrading Jetty. What can I do to fix that?

Note, this was also cross-posted in the Portuguese StackOverflow version: https://pt.stackoverflow.com/q/64548/132

Author:Victor Stafusa - BozoNaCadeia,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30309677/fakehttpserver-breaks-when-upgrading-to-jetty-9
Joakim Erdfelt :

Upgrade the code that uses Jetty on FakeHttpServer for Jetty 9.\n\nThat is your only choice if you want to use Jetty 9 with FakeHttpServer.\n\nLooking at the project page for FakeHttpServer, it seems that there have been no updates (commits) to the project tree since Dec 2012.\n\nYou'll either have to convince the project leads to update it, or do it yourself. ",
2015-05-18T19:41:12
yy