• 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

Tomcat newbie very simple question.

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic