On 24/05/2011 21:21, Jay, Michael wrote:
> That was gnawing at the back of my mind a little bit. So how would you have 
> an entry point servlet run at a simple address without consuming everything 
> in that path? If the context is /hrsurvey and all the other servlets are 
> mapped with that assumed as a prefix, can there not be anything mapped to 
> /hrsurvey?

You'd use an exact match (which takes precedence).

> If I'm looking foolish here it's worth it. Under a lot of pressure to make 
> something work that I've never looked at before. I appreciate the insight.

Rather than me copy and pasting a few pages of the spec here, I highly
recommend that you read section 12 of the Servlet spec for info on how
requests are mapped to servlets.

Getting back to the original problem, it looks like something somewhere
has managed to create an HttpRequestWrapper that wraps itself. That is
going to be tricky to track down. How easy is this to reproduce? Can you
figure out what triggers it from the access logs?

Mark


> 
> mj
> 
> -----Original Message-----
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
> Sent: Tuesday, May 24, 2011 4:07 PM
> To: Tomcat Users List
> Subject: RE: Static Resources - Runtime Problems
> 
>> From: Jay, Michael [mailto:em...@ufl.edu] 
>> Subject: RE: Static Resources - Runtime Problems
> 
>> I haven't mapped the .htm to anything.
> 
> Actually, you have:
> 
>>       <servlet-mapping>
>>           <servlet-name>HRSurveyLogin</servlet-name>
>>           <url-pattern>/</url-pattern>
>>       </servlet-mapping>     
> 
> That will send everything to HRSurveyLogin, including anything it redirects 
> or forwards.  (Can you say, "infinite loop"?)
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to