This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat newbie very simple question.

 
Chase Bonham
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


http://localhost:8080/index.jsp
http://localhost:8080/tomcat-docs/appdev/index.html

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
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


Bill
 
Chase Bonham
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"


bootstrap.jar
commons-logging-api.jar
tomcat-juli.jar
tomcat5.exe
tomcat5w.exe
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic