0

I am currently using spring-web version 5.3.9 along with jakarta.servlet-api version 4.0.3 I tried to upgrade to jakarta.servlet-api version 5.0.0. First I got compilation issues as the import statements had to be changed from javax to jakarta which I have changed.

I am using org.springframework.web.filter.GenericFilterBean in my application and even after changing the import statements I am getting compiler error for the class which extends the GenericFilterBean class:

cannot access javax.servlet.Filter
[ERROR]   class file for javax.servlet.Filter not found

Is spring-web 5.3.9 not compatible with the latest jakarta-servlet-api ? and if yes how do I find out ?

Neelotpal
  • 337
  • 4
  • 15
  • possible answer here - https://stackoverflow.com/questions/66217350/deploying-spring-5-x-on-tomcat-10-x-with-jakarta-package – Neelotpal Aug 06 '21 at 12:47

0 Answers0