Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 20th, 2003, 09:44 AM
wardt1 wardt1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 wardt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
  #2  
Old May 20th, 2003, 01:41 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
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?

Reply With Quote
  #3  
Old May 20th, 2003, 04:12 PM
wardt1 wardt1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 wardt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Why the heck won't this servlet mappinbg work?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT