This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat newbie very simple question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat newbie very simple question." Watch "Tomcat newbie very simple question." New topic

Tomcat newbie very simple question.

Chase Bonham
Ranch Hand

Joined: Jul 15, 2006
Posts: 50
I downloaded Tomcat 5.5.23.

Started tomcat by clicking on the $CATALINA_HOME/bin/tomcat5.exe.

Trying to hit the following URLs just to see if Tomcat works as a web server


I'm getting 404 no matter what I hit..

Am I missing something.. is downloading Tomcat, starting Tomcat exe (without changing anyhting) and then hitting the example webapps should work right?

Do I need to modify an XML file somewhere?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
The best way to start Tomcat when you are a newbie is to open a command prompt window, navigate to the _tomcat_\bin directory, execute start.bat. (Im assuming Tomcat was not installed as a service.)

The start.bat process checks to see if various environment variables are set correctly - without them, nothing will work. By using the command prompt window you are able to see some error messages.

Why did you think that clicking on tomcat.exe was the way to start?

Chase Bonham
Ranch Hand

Joined: Jul 15, 2006
Posts: 50
The self executing Windows install of 5.5.23 (the distro) does not ship with a start.bat.

Here's what I have in my "C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin"

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

If you installed it as an exe, you had the option to install both the start menu items and the Windows Service.

Start-> Programs -> Apache Tomcat

Or fire up your Windows Services screen and you should see an entry called Apache Tomcat

Oh, and there was also an optional systray Icon that can be used to start/stop Tomcat
[ June 18, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Tomcat newbie very simple question.
jQuery in Action, 3rd edition