• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error 404 - although Apache Tomcat is running

 
Greenhorn
Posts: 3
Suse Ubuntu Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to all for the help . Much appreciated
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic