In my gradle project, I am trying to bring up the application locally and getting below error :
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.web.servlet.support.SpringBootServletInitializer] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@73d16e93]
Caused by: java.lang.NoClassDefFoundError: jakarta/servlet/ServletContext
Versions used : Java 17 Springboot 3.1.3 Jakarta servlet 6.0.0
I looked up the compatible versions table, jakarta servlet above 4.x is compatible with spring 3.x Other version checks also done, but still the issue persists
jakarte.servletdependency, that is already part of thespring-boot-starter-webdependency. Please show yourpom.xmlpom.xml?