This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes WebApp: Error 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "WebApp: Error 404" Watch "WebApp: Error 404" New topic
Author

WebApp: Error 404

Carl Parrish
Ranch Hand

Joined: May 03, 2002
Posts: 60
WebApp: Error 404
I shut down my Linux box without stoping Tomcat when it came back up I get the above error msg regardless of what page I try to load.
Web-application not yet deployed.
Any idea as to how to fix this?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Without seeing it, only guesses.
Check the tomcatx/webapps directory to see if your webapps are there and if they have been unpacked. Check the server.xml file for context definitions.
Just shutting down the OS shouldn't make anything disappear unless the way you shut down the OS involved yanking the power cord out of the box and having the system come up deleting damaged files.
Still, a clean Tomcat shutdown is preferable so you can have the apps flush their file caches and so forth.


Customer surveys are for companies who didn't pay proper attention to begin with.
Carl Parrish
Ranch Hand

Joined: May 03, 2002
Posts: 60
The apps seem to be there and the server.xml file seems intact but I noticed that my work dir is empty.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: WebApp: Error 404