Ask Your Question
1

What could be the reason for encountering a java.lang.ClassNotFoundException error related to jakarta.servlet.http.HttpSessionContext when using Spring Boot 3 and Jetty server?

asked 2023-06-15 06:50:06 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-15 06:54:02 +0000

qstack gravatar image

The reason for encountering a java.lang.ClassNotFoundException error related to jakarta.servlet.http.HttpSessionContext when using Spring Boot 3 and Jetty server could be that the Jetty version being used is not compatible with the Jakarta EE 9 API, which includes HttpSessionContext. In order to resolve this issue, you can try upgrading the Jetty version to the latest version that is compatible with the Jakarta EE 9 API. Alternatively, you can also try downgrading the Jakarta EE API version used by your application to a version that is compatible with the Jetty server being used.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-15 06:50:06 +0000

Seen: 7 times

Last updated: Jun 15 '23