response.sendRedirect() finite loop?!

2003-12-03 Thread Stuart Stephen
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


RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Stuart Stephen
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]



RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Shapira, Yoav

Howdy,
I've never seen something like this with tomcat, and I don't know enough
about mod_jk to comment intelligently.  If you don't need Apache, don't
use it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Stuart Stephen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 7:37 AM
To: Tomcat Users List
Subject: RE: response.sendRedirect() finite loop?!

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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Jeff Tulley
Also, are you using the latest mod_jk?   We had some thread hangs (never
saw what you are seeing), that cleared up by moving to 1.2.5 mod_jk.

 [EMAIL PROTECTED] 12/3/03 7:05:52 AM 

Howdy,
I've never seen something like this with tomcat, and I don't know
enough
about mod_jk to comment intelligently.  If you don't need Apache,
don't
use it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Stuart Stephen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 7:37 AM
To: Tomcat Users List
Subject: RE: response.sendRedirect() finite loop?!

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] 




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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



RE: response.sendRedirect() finite loop?!

2003-12-03 Thread srevilak
 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.

Just out of curiosity, are you using mod_rewrite?  If your .jsp
redirects A - B, and you are rewriting B - A, then this will produce
behavior similar to what you're seeing.  (However, you'd also see one
line for each loop iteration in Apache's access log).

Are there any HTTP headers returned via

  response.sendRedirect(/test/RedirectToMe.jsp);

(Should be an HTTP 302 with a Location: header).

Also, what is the url for the servlet/jsp that makes the above call?

-- 
Steve

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