I believe that I found the place where the problem is.
It seems to me the version of tomcat I am using (3.1m)
may have a bug. It always returns true on
HttpSession.isNew() call. I did not look inside the
code of Tomcat to verify it.
I have added two lines to work around this.
In the doGet() method of Turbine, if the session is
new, I add a new attribute to it and check that
attribute in future. This way, I kind of implement my
own isNew() mehthod.
--
if ( sessionValidator.requiresNewSession(data) &&
data.getSession().isNew()&&
(data.getSession().getAttribute("$_NOT_NEW") == null))
//Extra condition added
{
data.session.setAttribute("$_NOT_NEW", new
Boolean(true));//Extra line added
....
} ---
Sorry, I did not send a diff.
Thanks ...
Shovon
--- Moshiul Shovon <[EMAIL PROTECTED]> wrote:
>
>
> Q2. I have installed Turbine on a
> Win98/jdk1.2.2/Tomcat 3.1M system. I get the
> following
> exception when I try to access the first page ...
>
> --
> Exception: java.lang.Exception: Infinite redirect
> detected...
> at Turbine.doGet(Turbine.java, Compiled
> Code)
> at
> java.lang.Exception.<init>(Exception.java,
> Compiled Code)
> at Turbine.doGet(Turbine.java, Compiled
> Code)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
>
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java,
> Compiled Code)
> at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:224)
> at
>
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:240)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
>
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java,
> Compiled Code)
> at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:224)
> at
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:347)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
> at
>
org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
> at java.lang.Thread.run(Thread.java:479)
>
> ---
>
>
> Did I miss any config option?
>
> Thanks ....
>
>
> Shovon
>
>
> __________________________________________________
> Do You Yahoo!?
> Send online invitations with Yahoo! Invites.
> http://invites.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]