Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Set

 
Niels Laughlin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65221
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check to see if an index.html exists in the Tomcat ROOT appliccation?
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65221
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic