FakeHttpServer breaks when upgrading to Jetty 9

综合编程 2018-02-19 阅读原文

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

Upgrade the code that uses Jetty on FakeHttpServer for Jetty 9.

That is your only choice if you want to use Jetty 9 with FakeHttpServer.

Looking at the project page for FakeHttpServer
, it seems that there have been no updates (commits) to the project tree since Dec 2012.

You’ll either have to convince the project leads to update it, or do it yourself.

Hello, buddy!

责编内容by:Hello, buddy!阅读原文】。感谢您的支持!

您可能感兴趣的

NutzBoot v2.2.0 没有华丽的标题,只有朴素的代码... NutzBoot v2.2.0 "荷塘月色" 发布了,此版本完善了 serlvet 容器(jetty/undertow/tomcat)对 web.xml...
Jetty源码剖析系列(7) – 底层网络通信的细节... 我们先来回顾一下 Jetty 负责网络连接的类 ServerConnector 的构造函数: 可以看到在ServerConnector的构造函数里会创建一个...
Using a Jetty server causes the doGet (&a... I am using a Jetty server to run on my local host using an Eclipse plugin. ...
附录C Jetty与JettyUtils 注:本文是为了配合《 Spark内核设计的艺术 架构设计与实现 》一书的内容而编写,目的是为了节省成本、方便读者查阅。书中附录C的内容都在本文呈现。 ...
码云推荐 | 从 Nutz 启动 Jetty Nutz-Web 使用 fork 功能将在后台会为你创建一个与该项目内容一样的同名项目,你可以在这个新项目里自由的修改内容。 建议只在有意向参与改进该项目时使用 fork 功...