Reputation: 753
Problem: I am relatively new to tomcat, i deployed a war file from the new project i am working on and it deploys fine without any problems, but when i try to run the app it gives 404. I tried : tried to find the appropriate error messages but,no errors seen in eclipse console nor in logs folder in tomcat installation directory. How do i troubleshoot this problem? any help is appreciated.
Upvotes: 5
Views: 12789
Reputation: 3733
1. Please check this file: ( sometimes the console won't give any tips)
${tomcat-root-directory}/logs/localhost.yyyy-MM-dd.log
2. My case:
I depolyed war file successfully logging from the console's output.
But when I access the url in browser, I get 404 error.
I checked the log, found that java source files are missing. and there was a java.io.FileNotFoundException
.
Then I remembered that I use the maven clean
command, before packaging the war file. It deleted them! Without those resource files, my war project doesn't start up properly. and I checked http://127.0.0.1:8080/manager/html
tomcat webapps management page, my war project running status is false.
Upvotes: 2