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 Tomcat newbie very simple question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat newbie very simple question." Watch "Tomcat newbie very simple question." New topic
Author

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


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

Joined: Mar 22, 2000
Posts: 12785
    
    5
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

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"


bootstrap.jar
commons-logging-api.jar
tomcat-juli.jar
tomcat5.exe
tomcat5w.exe
Ben Souther
Sheriff

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: http://aspose.com/file-tools
 
subject: Tomcat newbie very simple question.