You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by david joffrin <da...@hotmail.com> on 2005/05/09 00:20:40 UTC

Tapestry RedirectException & Apache ProxyPass

Hi everybody,

I am facing a pretty sad thing, but I think I am loosing (kind of) the 
session when doing a Tapestry RedirectException.

My set-up is an apache server that redirects to my JBOSS instance as follow:
ProxyPass /sudetp http://www.bidnplay.com:8080/sudetp
ProxyPass / http://www.bidnplay.com:8080/sudetp
ProxyPassReverse / http://www.bidnplay.com:8080/sudetp

I have some pages that are having member restricted areas and I used the 
Visit class (of course).
One of my page implements a RedirectException as follow:
IEngineService service = cycle.getEngine().getService(
	Tapestry.EXTERNAL_SERVICE);
ILink link = service.getLink(cycle, cycle.getPage(), new Object[] {
	"BrowseOverview", new Integer(getCurrentCategoryId()) });
throw new RedirectException(link.getURL());

But if the user was logged in before, after the redirect, he is not 
anymore!!!

Any idea why?

Thanks.
David.



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry RedirectException & Apache ProxyPass

Posted by david joffrin <da...@hotmail.com>.
Hi,

Thanks for that... Even if, I do not really understand why the client 
browser is detecting a change in the hostname as I am using relative URL 
path!!!

Is there any way to fix that issue?
Can I force when constructing the URL to add jsessionid=.....

Thanks.
DvJ

>From: Howard Lewis Ship <hl...@gmail.com>
>Reply-To: Howard Lewis Ship <hl...@gmail.com>
>To: Tapestry users <ta...@jakarta.apache.org>
>Subject: Re: Tapestry RedirectException & Apache ProxyPass
>Date: Mon, 9 May 2005 09:27:07 -0400
>
>Likely culprit is that the client web browser sees a change of host
>name and stops sending the jsessionid cookie.
>
>On 5/8/05, david joffrin <da...@hotmail.com> wrote:
> > Hi everybody,
> >
> > I am facing a pretty sad thing, but I think I am loosing (kind of) the
> > session when doing a Tapestry RedirectException.
> >
> > My set-up is an apache server that redirects to my JBOSS instance as 
>follow:
> > ProxyPass /sudetp http://www.bidnplay.com:8080/sudetp
> > ProxyPass / http://www.bidnplay.com:8080/sudetp
> > ProxyPassReverse / http://www.bidnplay.com:8080/sudetp
> >
> > I have some pages that are having member restricted areas and I used the
> > Visit class (of course).
> > One of my page implements a RedirectException as follow:
> > IEngineService service = cycle.getEngine().getService(
> >         Tapestry.EXTERNAL_SERVICE);
> > ILink link = service.getLink(cycle, cycle.getPage(), new Object[] {
> >         "BrowseOverview", new Integer(getCurrentCategoryId()) });
> > throw new RedirectException(link.getURL());
> >
> > But if the user was logged in before, after the redirect, he is not
> > anymore!!!
> >
> > Any idea why?
> >
> > Thanks.
> > David.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
>--
>Howard M. Lewis Ship
>Independent J2EE / Open-Source Java Consultant
>Creator, Jakarta Tapestry
>Creator, Jakarta HiveMind
>
>Professional Tapestry training, mentoring, support
>and project work.  http://howardlewisship.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry RedirectException & Apache ProxyPass

Posted by Howard Lewis Ship <hl...@gmail.com>.
Likely culprit is that the client web browser sees a change of host
name and stops sending the jsessionid cookie.

On 5/8/05, david joffrin <da...@hotmail.com> wrote:
> Hi everybody,
> 
> I am facing a pretty sad thing, but I think I am loosing (kind of) the
> session when doing a Tapestry RedirectException.
> 
> My set-up is an apache server that redirects to my JBOSS instance as follow:
> ProxyPass /sudetp http://www.bidnplay.com:8080/sudetp
> ProxyPass / http://www.bidnplay.com:8080/sudetp
> ProxyPassReverse / http://www.bidnplay.com:8080/sudetp
> 
> I have some pages that are having member restricted areas and I used the
> Visit class (of course).
> One of my page implements a RedirectException as follow:
> IEngineService service = cycle.getEngine().getService(
>         Tapestry.EXTERNAL_SERVICE);
> ILink link = service.getLink(cycle, cycle.getPage(), new Object[] {
>         "BrowseOverview", new Integer(getCurrentCategoryId()) });
> throw new RedirectException(link.getURL());
> 
> But if the user was logged in before, after the redirect, he is not
> anymore!!!
> 
> Any idea why?
> 
> Thanks.
> David.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org