Reposting Solution which helped- "The configurations are same for the three environments but I tried changing the Tomcat version from auto select to specific version 9.0.54 and that did the trick."
@Aayush Suresh Jain Glad that you were able to resolve your issue and I appreciate your effort in sharing the solution. Your contribution will undoubtedly assist others facing similar challenges.
As the Microsoft Q&A community follows a policy where the question author cannot accept their own answer.
I've reposted your solution.
Feel free to consider "Accepting" the answer if you find it suitable.