Is there a way to get WM to work with Jetty 12.1 a...
# help
g
Is there a way to get WM to work with Jetty 12.1 and EE11? java.lang.NoSuchMethodError: 'org.eclipse.jetty.util.component.Environment org.eclipse.jetty.util.component.Environment.ensure(java.lang.String)' at org.eclipse.jetty.ee10.servlet.ServletContextHandler.clinit(ServletContextHandler.java:135) at com.github.tomakehurst.wiremock.jetty12.Jetty12HttpServer.addAdminContext(Jetty12HttpServer.java:256) at com.github.tomakehurst.wiremock.jetty12.Jetty12HttpServer.createHandler(Jetty12HttpServer.java:195) at com.github.tomakehurst.wiremock.jetty.JettyHttpServer.init(JettyHttpServer.java:101) at com.github.tomakehurst.wiremock.jetty12.Jetty12HttpServer.init(Jetty12HttpServer.java:74) at com.github.tomakehurst.wiremock.jetty12.Jetty12HttpServerFactory.buildHttpServer(Jetty12HttpServerFactory.java:33) at com.github.tomakehurst.wiremock.WireMockServer.init(WireMockServer.java:75) at com.github.tomakehurst.wiremock.junit.WireMockRule.init(WireMockRule.java:36) Jetty doesn't keep binary compatibility from 12 to 12.1 😞
t
Working on it. 4.x beta will shortly upgrade to Jetty 12.1 and will go GA with that.
g
Hi @Tom Great news. Is there an ETA for the beta?
t
Nope, sorry. It’s pretty much the most urgent OSS task at the moment, but estimating when OSS things will get released just leads to disappointment :-) There’s an open PR that looks like it might get us most of the way there, so I’m reviewing that at the moment…
g
I know all about the FOSS dance! I'm the main maintainer for Apache Commons. Is there a Maven snapshot repo I can point my project to for when the PR gets merged?
t
Ah, well in that case, thanks for all your tireless work!
Let me take a look at this PR and get back to you - it might actually make sense to keep the 12.0/12.1 modules separate for a while, and combine down to just 12.1 before GA of WM 4.x. If we do that, it’ll just be an extra artifact in the main Maven repo (like we did in 3.x).
g
Jetty has split JARs up for each EE version, so it might be the better direction at the cost of copy-pasta.
YW and thank you as well 🙂