Why the heck won't this servlet mappinbg work?
I've got a J2EE app with a single Controller servlet, many JSPs and a fair number of helper Java classes. All works fine, except for this. In the web.xml, I map all URL's of the pattern "*.blt" to the controller servlet. However, when i try to request a .blt page, I only get a 404. Originally, this mapping was used to map all requests for "*.html" to the same servlet, and all worked great. I've recompiled all my classes and redeployed the application, restarted the server (ias 6.5), but no luck.
We need to see the web.xml and the exact link you are trying to request.
Also, are you positive the 404 is for the controller servlet or is the servlet throwing a 404 error when it tries to include say another file?
It never fails. As soon as I post a problem, I solve it!
In this case, the IAS web server (actually a unix box with a IAS web connector installed) needed to be rebooted. It was caching the old web.xml, so the new file extension wasn't being dealt with properly.