Hi,

On further investigation it would appear that this is not a Tomcat issue. It
seems to be something to do with mod_jk. When a response.sendRedirect occurs
it does not apply it properly. Or at least something is not executing
properly.

The setup we have is Apache 2.0.48, Tomcat 4.1.29, and mod_jk between them
working with mod_ssl. I tested the code without using apache between me and
Tomcat and everything worked as expected.

Any suggestions or comments??

Regards
Stuart

-----Original Message-----
From: Stuart Stephen [mailto:[EMAIL PROTECTED]
Sent: 03 December 2003 10:06
To: [EMAIL PROTECTED]
Subject: response.sendRedirect() finite loop?!


talk2UtimeHi all,

I am getting strange entries in my test_service_log.2003-12-03.txt.

In my JSP which gets executed before this I am running a
response.sendRedirect("/test/RedirectToMe.jsp"); with a return; afterwards.
So this should only get executed once. However. According to my logs its
being accessed 1333 times in just SIX seconds [line count / 2]. I am the
ONLY person on the server and therefore this is strange occurance!

I checked the corresponding apache logs and this servlet was not in the
logs, the servlet before hand which does the redirect was the only servlet
that has been accessed externally. This is true from what the user sees.

Is this a bug in Tomcat 4.1.29 or has something changed? I've been using
Tomcat for a few years now and I've never seen anything like this?

Regards,

Stuart Stephen

2003-12-03 09:32:08 StandardContext[/t2ut]: Mapping contextPath='/test' with
requestURI='/test/RedirectToMe.jsp' and relativeURI='/RedirectToMe.jsp'
2003-12-03 09:32:08 StandardContext[/t2ut]: Mapped to servlet 'jsp' with
servlet path '/RedirectToMe.jsp' and path info 'null' and update=true
2003-12-03 09:32:08 StandardContext[/t2ut]: Mapping contextPath='/test' with
requestURI='/test/RedirectToMe.jsp' and relativeURI='/RedirectToMe.jsp'
2003-12-03 09:32:08 StandardContext[/t2ut]: Mapped to servlet 'jsp' with
servlet path '/RedirectToMe.jsp' and path info 'null' and update=true
...
...
...
2003-12-03 09:32:14 StandardContext[/t2ut]: Mapping contextPath='/t2ut' with
requestURI='/t2ut/RoomTimes.jsp' and relativeURI='/RoomTimes.jsp'
2003-12-03 09:32:14 StandardContext[/t2ut]: Mapped to servlet 'jsp' with
servlet path '/RoomTimes.jsp' and path info 'null' and update=true
2003-12-03 09:32:14 StandardContext[/t2ut]: Mapping contextPath='/t2ut' with
requestURI='/t2ut/RoomTimes.jsp' and relativeURI='/RoomTimes.jsp'
2003-12-03 09:32:14 StandardContext[/t2ut]: Mapped to servlet 'jsp' with
servlet path '/RoomTimes.jsp' and path info 'null' and update=true



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to