• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic