You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using spring-boot-starter-jetty with version 3.0.0, fails when we try to start a jetty server in the application. ClassNotFound exception is seen for class import jakarta.servlet.http.HttpSessionContext.
Explicitly importing the same version of jetty library in 3.0.0 ( 11.0.12) solves the issue. Explicit import is bringing back some parts of jakarta (<6.0) which has the above class.
Steps to reproduce:
create a project with spring initialiser with spring web, and jetty starter
Create a bean for JettyServletWebServerFactory to use jetty server
Above can be solved by explicitly mentioning the eclipse version in pom. Ideally this should just work with standard imports, so there is some issues in spring-boot-starter-jetty i think.
Issue
Using spring-boot-starter-jetty with version 3.0.0, fails when we try to start a jetty server in the application. ClassNotFound exception is seen for class import jakarta.servlet.http.HttpSessionContext.
Explicitly importing the same version of jetty library in 3.0.0 ( 11.0.12) solves the issue. Explicit import is bringing back some parts of jakarta (<6.0) which has the above class.
Steps to reproduce:
Above can be solved by explicitly mentioning the eclipse version in pom. Ideally this should just work with standard imports, so there is some issues in spring-boot-starter-jetty i think.
Extra information
pom which doesnt works :
pom which works :
WebMvcConfigurer
The text was updated successfully, but these errors were encountered: