Hi All, I am facing issue with using wire mock 2.35.0 with spring boot version 3. The error is due to mismatch version of jetty jars. Is it a known issue? Any workaround?
o
Oleg Nenashev
04/20/2023, 5:22 AM
Hello. Which WireMock artifact do you depend on?
n
Naveen Purswani01
04/20/2023, 5:45 AM
Jetty server jar 11.0.13
Wiremock version is 2.33.2
Java version is 17
This is the msg in logs
———-
Action:
Correct the classpath of your application so that it contains compatible versions of the classes
com. gi -hub. tomakehurst. wiremock. jetty9. JettyHttpServer and org. eclipse.jetty. server. NetworkTrafficserverConnector
————-
I am trying to use the embedded Wiremock but it seems the issue is with Wiremock as it is not compatible with jetty 11.
o
Oleg Nenashev
04/20/2023, 6:17 AM
For Java 17 yes, Jetty 9 will not work, because it does notsupport it.
I recommend you try the same with WireMock 3 beta which uses Jetty 11
n
Naveen Purswani01
04/20/2023, 6:18 AM
Thanks… yes I saw a comment and fix from Tomakehurst…. It worked