#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    2
    Rep Power
    0

    Why the heck won't this servlet mappinbg work?


    Hi all,

    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.

    Any ideas?
  2. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    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?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    2
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo