top of page

Spring boot3: Use jetty instead of tomcat

Updated: Jan 2


I understand that Spring Boot 3 is currently in high demand in the market, and many applications are eager to migrate to it, which is indeed a positive trend. However, it's crucial to be aware that there are some significant changes that may pose challenges. I recently encountered a similar issue when attempting to use Jetty instead of Tomcat.


java.lang.ClassNotFoundException: jakarta.servlet.http.HttpSessionContext with Spring Boot 3 and Jetty server


Upon investigation, I found that Spring Boot 3 requires the inclusion of several additional libraries in the project's `pom.xml` file. These libraries are listed below:


Please let me know in the comments section if the above solution doesn't work for you and thanks for checking out my site

103 views0 comments



Vasu Jinagam

Hi 👋 , Myself Vasu Jinagam from Bengaluru India and I am currently working at slice as an Engineering Manager.


HangoutDude is a No-Nonsense Tech and story blog, I like to talk about Golang, Java, Distributed Microservices, Opensource and Cloud computing

You can reach out to me @

bottom of page