Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is no Spring Boot version 3. The latest major version of Spring Boot as of now is 2.5.x.

And regarding the NoClassDefFoundError, it is possible for this error to occur if you are using a library or framework that has been updated to use the jakarta namespace instead of the javax namespace, as part of the migration from Java EE to Jakarta EE.

To resolve this issue, you can try upgrading the affected library or framework to a version that uses the jakarta namespace, or you can try adding the following dependency to your project:

<dependency>
  <groupId>jakarta.servlet</groupId>
  <artifactId>jakarta.servlet-api</artifactId>
  <version>5.0.0</version>
  <scope>provided</scope>
</dependency>

This will provide the jakarta.servlet.http.HttpSessionContext class that is missing. However, make sure to also update any other dependencies that might be using the javax namespace to the corresponding versions that use the jakarta namespace.