File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes TC can't find my projects html 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 "TC can Watch "TC can New topic

TC can't find my projects html

Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
I installed tomcat 4.4.24 a while back and it works fine on the examples and the code from Murach's Java Servlets and JSP book examples. I'm trying to go through the book but using my own application. In the webapps directory I've created an rl directory which contains an index.htm file.
If I enter
in my browser, it works fine and brings up the index for the murach examples.
If I enter
in my browser, I get a 404 from tomcat (not netscape).

ms<br />SCJP, SCJD
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
Look at the ../conf/web.xml file - does it have a welcome-file element containing index.htm?
Also, in order for Tomcat to recognize a directory under webapps as a web application, that directory must have a WEB-INF subdirectory and a web.xml file.
[ August 11, 2003: Message edited by: William Brogden ]
It is sorta covered in the JavaRanch Style Guide.
subject: TC can't find my projects html
It's not a secret anymore!