2 Replies Latest reply on Jul 25, 2010 4:09 PM by John Patrick

    404 Missing Resources list?

    John Patrick Newbie

      Hi there,


      I'm using JBoss 4.2.2 and have my Web Application set up to handle 404 errors by configuring an error page in my web.xml


      It all works exactly as I would expect - and if the user requests a page that doesn't exist, sure enough they go to my custom 404 page.


      But...here is the question:  Is there any way on the 404 JSP I have created that I can find out and display the actual resource requested that caused the 404 in the first place?


      An example:  I have a page that includes an Image Resource.  A developer forgot to include that resource in the deployment.  The server attempted to render the page and throws the user to the 404 error page.  Just because the image was not available.


      I would like to be able to output to the JSP the name of the missing Resource - or at least get it to appear in my server log.


      Despite my best attempts at searching for a solution I have come up empty handed.  Surely Tomcat knows what was requested - otherwise why throw me to a 404 - but how do I tap into that info?