-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tomcat HTTP Status 404 – Not Found on new install #2044
Comments
Hi Adam, Any chance the CentOS firewall on the server isn't allowing access to port 8080? If that's not it, we can have someone more technical help you out. Thanks-- |
Hi Adam, Thanks for reaching out. That outcome can be symptomatic of a variety of different underlying problems. To further investigate we could use some more information generated by the application when it initially started. Can you provide logs? If you're not terribly familiar with docker, these logs can be found by first finding the web-app Container ID using: Then subsequently running the following command after replacing the Container ID to save the application logs in a text file: Can you also share what happens when you attempt to connect to the application using the following path: Regards, |
Hi, Thanks for the response. Info below: "application-log.txt" - application-log.txt https://[PUBLIC_IP]:8443/gtas - Shows a cert error. I also tried a wget on the server to http://localhost:8080/gtas encase it was a public IP issue and same 404: [root@dev-gtas1 ~]# wget -O - http://localhost:8080/gtas What's the best OS to use? This is on CentOS 7.9, but I've also tried Ubuntu 20. It's a new DigitalOcean droplet, so we can revert to another OS if needed. |
Further to the above, I just tried again on a new Ubuntu 18 box. It shows a 404 also (on the url http://[public_ip]:8080/gtas). Info below: Install commands
Logs |
Hi, Further update to the above... I installed on a new CentOS 7 server using your guide here: It's resulting in the same 404 issue when accessing the gtas url - http://[public_ip]:8080/gtas/login.html I've enabled the Tomcat "manager app" and can see both the "/gtas-job-scheduler" & "/gtas" app listed. The url http://[public_ip]:8080/gtas-job-scheduler also shows the form fine. It's almost like none of the uri routing rules are there for gtas. If I go to the /opt/apache-tomcat-9.0.37/webapps folder on the server, I see '/gtas'. Where would the url routes be defined? Is there anything else I can try to get this up and running? Logs: catalina.2021-04-30.log Thanks, |
There are no files in /opt/apache-tomcat-9.0.37/webapps/gtas/ after deploying the war file, if that helps. Only a META-INF & WEB-INF folder. |
Hi,
I've done an install on a new CentOS server using the "Docker Usage Instructions.md". Everything went well however I'm seeing a Tomcat "HTTP Status 404 – Not Found" when trying to load the webapp.
I'm trying to load it via the public IP (rather than localhost), could this be the issue?
i.e. http://{public_ip}:8080/gtas
Thanks,
Adam.
The text was updated successfully, but these errors were encountered: