wood burning stoves 2.0*
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
Author

Tomcat Set

Niels Laughlin
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

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


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

Joined: Jan 25, 2007
Posts: 226
Hi,

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
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat Set