New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiremock standalone 3: NoSuchMethodError #2621
Comments
Have the same trouble, is it even compatible? |
Hi, I am struggling to reproduce this using Spring Boot 3.2.2 and wiremock standalone 3.4.2. Do you have an example project that demonstrates this or more details of the tests you are running to help me diagnose the issue? |
Hi, we are planning on releasing |
With Spring boot 3.2.5, Java 21 and wiremock-standalone in version 3.5.4 the problem still exists in my project |
Hi @samuelstein Many thanks for the update. I have updated my test project to the versions in your last comment and I still can't reproduce this issue. Would it be possible to post some code or an example project that demonstraites the issue so we can see what is happening for you? Also, on a releated note, we now have a jetty 12 version of WireMock that should work with Spring Boot 3.x.x. I am not sure if you have tried this at all? The reason people were using WireMock Standalone with SB 3.x.x was because they updated to jetty 12 in the 3.x.x release of SB and WireMock was originally on jetty 11. https://mvnrepository.com/artifact/org.wiremock/wiremock-jetty12/3.5.4 Example project here - https://github.com/wiremock/wiremock-examples/tree/main/spring-boot/spring-boot-3/wiremock-jetty-12 |
Proposal
After switching maven artifact group from com.github.tomakehurst to org.wiremock the following exception occurred:
java.lang.NoSuchMethodError: 'void wiremock.org.eclipse.jetty.server.AbstractConnectionFactory.<init>(java.lang.String[])'
Reproduction steps
I'm using Spring Boot 3.2.2, JUnit 5 (4.2.21) and wiremock standalone 3.4.2.
References
The wiremock server is instanciated in a test class with the following annotation:
@SpringBootTest
@WireMockTest(httpPort = 80)
The text was updated successfully, but these errors were encountered: