Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servlet 4, Tomcat 9 vs. Tomcat 10 and later #13

Open
kasemir opened this issue Nov 28, 2022 · 1 comment
Open

Servlet 4, Tomcat 9 vs. Tomcat 10 and later #13

kasemir opened this issue Nov 28, 2022 · 1 comment

Comments

@kasemir
Copy link
Collaborator

kasemir commented Nov 28, 2022

The PWVS has been developed for the Servlet 4 API (javax.servlet.* classes) which is supported up until Tomcat 9.

With Tomcat 10, the Servlet API has switched to jakarta.servlet.* packages, resulting in errors similar to

java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

When we update the source code to the newer Servlet spec, this will break usage on older but still supported tomcat versions.
For now, the solution is to run on Tomcat 9, not Tomcat 10.

@kasemir
Copy link
Collaborator Author

kasemir commented Dec 1, 2022

tomcat10 branch allows building for Servlet 5 API

@kasemir kasemir changed the title Servlet 4 vs. later Servlet 4, Tomcat 9 vs. Tomcat 10 and later Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant