The task is “Day 11: Install and Configure Tomcat Server” from “100 days of Devops” that I am completing on platform “KodeKloud - Engineer | Practice” . I hope I am clear now .
It’s not clear how you did the task, but give the error you’re getting you would want to look at journalctl -u tomcat to see what the underlying error was; tomcat is erroring out when you try to hit its endpoint. I had something similar (I installed tomcat using yum) which used the default java 1.8. The error I found in the logs suggest that it was a java version problem. So I did the following which fixed it:
I installed openjdk 25.
I used alternative --config java to make sure that java 25 was being used, which I confirmed with java -version.
I restarted tomcat using systemctl.
When I checked the endpoint, It reacted with a customized KKE specific web page, which is what was needed.