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

How to replicate page 404 in Tomcat 7.0 (running in Eclipse)

 
Ramin Esfandiari
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a web application that runs on Tomcat 7.0.34. When the server is running, I expect to see page 404 error when I enter an incorrect url (say I have localhost:8080/home/app and I type in localhost:8080/home/someNonExistingPage ) but instead I get "Oops! This link appears to be broken." (in Chrome) and nothing in Firefox.

I have both Apache HTTP and Tomcat server installed. How can I replicate a page 404 error?

Many thanks in advance
Ramin

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat is probably generating a 404 error just like you expect but something is fiddling with it - probably the browsers.

Microsoft IE is notorious for substituting "friendly" error message but I don't know where the Chrome or Firefox control that.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic