JoyOfCoding icon indicating copy to clipboard operation
JoyOfCoding copied to clipboard

Upgrade to Jetty 11

Open DavidWhitlock opened this issue 2 years ago • 2 comments

While working on #402, I attempted to upgrade the jetty-maven-plugin to the latest release, 11.0.9. However, the web application wouldn't start because of:

Caused by: java.lang.IllegalStateException: class com.google.inject.servlet.GuiceFilter is not a jakarta.servlet.Filter

GuiceFilter indeed appears to not implement the jakarta Filter: https://github.com/google/guice/blob/master/extensions/servlet/src/com/google/inject/servlet/GuiceFilter.java

I'm not sure what to do here. Maybe I can write my own jakarta Filter that wraps a GuiceFilter?

In the meantime, I'll stay on Jetty 9.

DavidWhitlock avatar May 21 '22 15:05 DavidWhitlock

Some discussion at https://github.com/google/guice/issues/1490

DavidWhitlock avatar Nov 26 '22 21:11 DavidWhitlock

It looks like Guice 7.0 supports the Jakarta APIs: https://github.com/google/guice/wiki/Guice700

But it looks like the resteasy-guice module was removed: https://issues.redhat.com/browse/RESTEASY-3329

DavidWhitlock avatar May 23 '23 14:05 DavidWhitlock