'Getting 404 not found after updating "tomcat Docker image" from 9 to 10

I am using Docker to deploy war files[Project based java servlets]. Everything was working fine when I was using "tomcat:9.0.58-jdk8-corretto" but when I have updated to "tomcat:10.0.18-jdk17-corretto" server is returning the following error. See in Screen-short. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source