File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes unable to start tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "unable to start tomcat" Watch "unable to start tomcat" New topic
Author

unable to start tomcat

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 702
Hello everyone i have installed eclipse and tomcat both and configured tomcat in eclipse, but what is happening is whenever i m starting server from eclipse server panel and trying to access localhost in my browser it giving me the following error:

HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.

Apache Tomcat/5.5.33


but when i m running any web project, it's running in the eclipse browser and browser.
can anyone please tell me why i m not able to access localhost, what i m doing wrong and how can i resolve this.

Thanks in advance.
Rob Spoor
Saloon Keeper

Joined: Oct 27, 2005
Posts: 18370

To access http://localhost you must have a web application called ROOT (capital case). This is then considered to be the root web application. It seems like you're missing it.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 702
thank you for replying but i m not getting what you want to say, can you please explain your answer and also what should i do to access localhost, and also what do you mean by web application ROOT..?
Devaka Cooray
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2595

ROOT is the name of the default web application that runs when you access http://localhost:port . Do you see a web application called ROOT in the webapps directory?
[Edit: typo]


Author of ExamLab - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 702
Thanks, and yes my webapps directory has ROOT.
Devaka Cooray
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2595

Did you check the Tomcat logs, which are in %Tomcat_Home%/logs directory?
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 702
yes but there is nothing inside my logs folder.
 
 
subject: unable to start tomcat
 
Threads others viewed
Unable to view default tomcat localhost page..
Tomcat 6, Eclipse and 404 errors oh my!
HTTP Status 404. My project runs ok w/ eclipse +tomcat; fails when exporting to .war
Unable to launch Tomcat from eclipse
Testing of html and jsp using tomcat 5.0.16
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture