JoyOfCoding
JoyOfCoding copied to clipboard
Upgrade to Jetty 11
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.
Some discussion at https://github.com/google/guice/issues/1490
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