aspose file tools*
The moose likes Servlets and the fly likes How to replicate page 404 in Tomcat 7.0 (running in Eclipse) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to replicate page 404 in Tomcat 7.0 (running in Eclipse)" Watch "How to replicate page 404 in Tomcat 7.0 (running in Eclipse)" New topic
Author

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

Ramin Esfandiari
Greenhorn

Joined: Mar 15, 2013
Posts: 16

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

Joined: Mar 22, 2000
Posts: 12823
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to replicate page 404 in Tomcat 7.0 (running in Eclipse)