Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error 404 - although Apache Tomcat is running  RSS feed

 
Mark Yacoub
Greenhorn
Posts: 3
Suse Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my dilemma

I have an application running on Ubuntu that uses MySQL5.5 and Apache Tomcat 6. I installed the application and tested it ... ran very smoothly with no issues whatsoever.
Restarted the server and tried getting into the application thru https://192.168.5.2:8443/Myapp but got the 404 error.
If both MySQL and Tomcat are running, then why the error ?!!! especially that the application ran when I first installed it

Thanks for the help in advance
 
Greg Charles
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Java Ranch!

A 404 error means a page is not found, and there are several ways that could happen. Myapp may not actually be deployed to Tomcat, or you may be typing the name wrong. (MyApp?) It also could be that you haven't defined a welcome page list in web.xml and there's no index.html or index.jsp in the deployment, or not in the right place. Or you have defined a welcome page and that file is not there, or the servlet is the welcome page, but you haven't set up the URL mapping correctly. There's no way for us to know for sure without more information.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66182
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the ServletsFaq for a list of possible issues to work through.
 
Mark Yacoub
Greenhorn
Posts: 3
Suse Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for the welcome message and help to resolve my issue. Much appreciated.
Weird thing is that error had nothing to do with Apache. I had changed the MySQL bind address in my.cnf. and that was the cause of the issue.
I still don't understand it though. what does the MySQL bind address have to do with error 404 ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66182
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the error occurs at startup and prevents the app from properly deploying, it cannot respond to requests.
 
Mark Yacoub
Greenhorn
Posts: 3
Suse Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all for the help . Much appreciated
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!