https://linen.dev logo
#help
Title
# help
m

Michal Kubele

10/31/2023, 11:34 PM
Hi, I'm testing Spring Boot 3.2 RC1, and I'm having trouble with initialising wiremock.
Copy code
java.lang.NoClassDefFoundError: jakarta/servlet/DispatcherType
the initialisation is quite simple
Copy code
val wireMockServer = WireMockServer(WireMockConfiguration.wireMockConfig().dynamicPort())
this problem is not on Spring Boot 3.1.5 I use the latest wiremock v3.2.0
Hi, anyone to help me with this? It's the same with the v3.3.1
t

Tom

11/04/2023, 10:56 AM
Suggest you try switching to the WireMock standalone JAR
o

Oleg Nenashev

11/04/2023, 11:04 AM
I think you should make the standalone jar a default one in the documentation and anywhere when it's possible. With spring boot 3 it became almost a daily question
Or maybe we could ship a compatibility shim, though I do not think it would be trivial
... And reflection free
12 Views