The file web.xml is not updating to version 5.0 in Intellij

Answered

We are using version 2021.1 of Intellij and we have migrated our project from Tomcat 8 to Tomcat 10. This results in replacing javax.servlet to jakarta.servlet packages in our code. We updated the version to 5.0 in web.xml file but it still seems to consider the old javax version. How can we resolve this error shown in the attached screenshot?

We tried clearing cache and indexes and restarting the IDE, but that doesn't resolve the issue.

 

0
1 comment

As a general troubleshooting step, please remove/rename .idea directory in the project's root and re-import the project.

If it does not help, please share a sample project, so we could reproduce that locally. 

0

Please sign in to leave a comment.