File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Set" Watch "Tomcat Set" New topic

Tomcat Set

Niels Laughlin

Joined: Apr 04, 2006
Posts: 19
Hi, I'm just starting out, and am working through Chapter 2 of Marty Hall's Core Servlets and JavaServerPages. I appear to be having a problem with tomcat.

From Firefox, I enter //localhost:8080 and the tomcat home page appears. According to Hall, this indicates that tomcat is installed correctly. But when I try to redisplay it using //localhost:8080/index.html, Firefox tells me that it's not there. There are a few other things that indicate that the problem may be that firefox is trying to communicate with my DSL internet rather than my own PC's server. Any ideas as to what may be wrong? Thanks. Niels Laughlin
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Did you check to see if an index.html exists in the Tomcat ROOT appliccation?

[Asking smart questions] [About Bear] [Books by Bear]
Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226

I think Bear Must be correct

there is no index.html...

but there is a mapping to index.jsp in the original web.xml i found inside (TOMCAT_HOME/Webapps/ROOT)

This should clarify your problem...

Still your curiosity is appreciated

Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Originally posted by Theepan Thevathasan:
there is no index.html...

Well, I was hoping that the OP would discover this for himself.

The reason that you get a 404 error on index.html, is that the file doesn't exist. So no mystery.

This is something you could have verified with a 30-second check.
I agree. Here's the link:
subject: Tomcat Set
It's not a secret anymore!