This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes custom 404 not being served in all cases Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "custom 404 not being served in all cases" Watch "custom 404 not being served in all cases" New topic
Author

custom 404 not being served in all cases

Ivan Lazarte
Greenhorn

Joined: Jan 05, 2009
Posts: 3
I have a servlet named "main", it processes most requests, except for any static resources i have in the app.
There's a filter in front of it that I use for urlrewriting.

The question is, why is tomcat's default 404 being served at all, even though my custom 404 appears to work usually.
I've noticed it only happens when there is a static directory entry, but the file asset doesn't exist.

summary:
/dirdoesnexist = custom 404 (good)
/staticdirexists/fileexists = 200 (good)
/staticdirexists/filedoesnexist = tomcat 404 (bad)

thanks in advance for any help.

Ivan Lazarte
Greenhorn

Joined: Jan 05, 2009
Posts: 3
anyone? this is still somehow escaping me...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: custom 404 not being served in all cases
 
Similar Threads
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
Having issues with Tomcat 6.x
Deployment Exception
Error page configured in web.xml not working
NullPointerException in AutoScrollPhaseListener