Platypus Header

Platypus Innovation Blog

10 January 2018

Upgrading from Jetty 8 to 9

I'm upgrading from Jetty 8.1 to Jetty 9.4. Here are the changes I've encountered so far:

The class SelectChannelConnector has been replaced with ServerConnector

Server.setThreadPool() has gone.

Lots of jar changes.

The JSON class (org.eclipse.jetty.util.ajax.JSON) has moved out into a separate Maven project: https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util-ajax, which gives you jetty-util-ajax.jar

You must upgrade to servlet-api 3.1 (so change anything which pulls in the servlet-api-3.0.jar or earlier).

Good-Loop Unit