You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by Derek Shen <de...@gmail.com> on 2005/04/04 05:51:59 UTC

portlet session and http session

Alright, I know that it is an old issue, around which a lot of
discussion have been made.

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707

http://issues.apache.org/jira/browse/PLUTO-53

Some people said that it has been resolved by tomcat and some others
claimed that it is only working on Jetty and not tomcat. I am totally
confused. It seems a very trivial problem. What I am trying to achieve
is so simple:

Inside the GenericPortlet doView, populate some data and put into the
PortletSession (eithe portlet scope or application scope), and
dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
is used to retrieve and present the data from session
(${sessionScope...).

Everytime I run my portlet, I gives me this:

14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
vlet jsp threw exception
java.lang.IllegalStateException: Cannot access session scope in page that does
ot participate in any session
        at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
mpl.java:264)
        at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
l.java:249)
        at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
icitObjects.java:633)

I am using the tomcat 5.5.4 comes with the latest Pluto. 

I tried to follow this solution:
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html

Using tomcat 5.5.x, set crossContext="true" and set
emptySessionPath="true". It does not help, still the same exception.

Someone please please help. Thanks!
Derek

Re: portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
It works. I made a silly mistake and put this line in my jsp:

<%@ page session="false" %>

On Apr 3, 2005 8:51 PM, Derek Shen <de...@gmail.com> wrote:
> Alright, I know that it is an old issue, around which a lot of
> discussion have been made.
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> 
> http://issues.apache.org/jira/browse/PLUTO-53
> 
> Some people said that it has been resolved by tomcat and some others
> claimed that it is only working on Jetty and not tomcat. I am totally
> confused. It seems a very trivial problem. What I am trying to achieve
> is so simple:
> 
> Inside the GenericPortlet doView, populate some data and put into the
> PortletSession (eithe portlet scope or application scope), and
> dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> is used to retrieve and present the data from session
> (${sessionScope...).
> 
> Everytime I run my portlet, I gives me this:
> 
> 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> vlet jsp threw exception
> java.lang.IllegalStateException: Cannot access session scope in page that does
> ot participate in any session
>        at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> mpl.java:264)
>        at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> l.java:249)
>        at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> icitObjects.java:633)
> 
> I am using the tomcat 5.5.4 comes with the latest Pluto.
> 
> I tried to follow this solution:
> http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> 
> Using tomcat 5.5.x, set crossContext="true" and set
> emptySessionPath="true". It does not help, still the same exception.
> 
> Someone please please help. Thanks!
> Derek
>

Re: portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
Tried to run the same thing on the latest tomcat (5.5.7) and got the
same exception.

Any idea?

thanks

On Apr 3, 2005 8:51 PM, Derek Shen <de...@gmail.com> wrote:
> Alright, I know that it is an old issue, around which a lot of
> discussion have been made.
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> 
> http://issues.apache.org/jira/browse/PLUTO-53
> 
> Some people said that it has been resolved by tomcat and some others
> claimed that it is only working on Jetty and not tomcat. I am totally
> confused. It seems a very trivial problem. What I am trying to achieve
> is so simple:
> 
> Inside the GenericPortlet doView, populate some data and put into the
> PortletSession (eithe portlet scope or application scope), and
> dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> is used to retrieve and present the data from session
> (${sessionScope...).
> 
> Everytime I run my portlet, I gives me this:
> 
> 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> vlet jsp threw exception
> java.lang.IllegalStateException: Cannot access session scope in page that does
> ot participate in any session
>        at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> mpl.java:264)
>        at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> l.java:249)
>        at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> icitObjects.java:633)
> 
> I am using the tomcat 5.5.4 comes with the latest Pluto.
> 
> I tried to follow this solution:
> http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> 
> Using tomcat 5.5.x, set crossContext="true" and set
> emptySessionPath="true". It does not help, still the same exception.
> 
> Someone please please help. Thanks!
> Derek
>

Re: portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
It works. 

I made a silly mistake, and put this line in my jsp:

<%@ page session="false" %>

On Apr 4, 2005 2:47 PM, Derek Shen <de...@gmail.com> wrote:
> Thanks. Here's the exception I got:
> 
> 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> vlet jsp threw exception
> java.lang.IllegalStateException: Cannot access session scope in page that does
> ot participate in any session
>       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> mpl.java:264)
>       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> l.java:249)
>       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> icitObjects.java:633)
> 
> It is so wired. I even can not google the exception. No one has seen
> this before? Looks like the JSTL expression langaurage is working.
> However, having problem to access the session from the JSP.
> 
> On Apr 4, 2005 2:41 PM, Hema Menon <me...@gmail.com> wrote:
> > What exception are you getting with JSTL? There has been some
> > discussions here regarding evaluating expressions in jstl, refer to
> > this thread
> > http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html
> >
> > Hema
> >
> > On Apr 4, 2005 4:37 PM, Derek Shen <de...@gmail.com> wrote:
> > > Talking to myself again.
> > >
> > > Looks like the problem is with the combination of JSTL and portlet session.
> > >
> > > <c:out value="${sessionScope.test}"/> throws the exception, and
> > > <%= request.getSession().getAttribute("test") %> is fine.
> > >
> > > and the attribute I set inside portlet sessio is available in the http
> > > session on JSP.
> > >
> > > It is ugly if I am not able to use JSTL with JSP and portlet.
> > >
> > > On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
> > > > Did not get response from the pluto mailing list.
> > > >
> > > > I tried it on the latest tomcat (5.5.7) just now and still have the
> > > > same problem. Has anyone seen this exception before?
> > > >
> > > > java.lang.IllegalStateException: Cannot access session scope in page that does
> > > > ot participate in any session
> > > >       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> > > > mpl.java:264)
> > > >
> > > > ---------- Forwarded message ----------
> > > > From: Derek Shen <de...@gmail.com>
> > > > Date: Apr 3, 2005 8:51 PM
> > > > Subject: portlet session and http session
> > > > To: pluto-dev@portals.apache.org
> > > >
> > > > Alright, I know that it is an old issue, around which a lot of
> > > > discussion have been made.
> > > >
> > > > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> > > >
> > > > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> > > >
> > > > http://issues.apache.org/jira/browse/PLUTO-53
> > > >
> > > > Some people said that it has been resolved by tomcat and some others
> > > > claimed that it is only working on Jetty and not tomcat. I am totally
> > > > confused. It seems a very trivial problem. What I am trying to achieve
> > > > is so simple:
> > > >
> > > > Inside the GenericPortlet doView, populate some data and put into the
> > > > PortletSession (eithe portlet scope or application scope), and
> > > > dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> > > > is used to retrieve and present the data from session
> > > > (${sessionScope...).
> > > >
> > > > Everytime I run my portlet, I gives me this:
> > > >
> > > > 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> > > > vlet jsp threw exception
> > > > java.lang.IllegalStateException: Cannot access session scope in page that does
> > > > ot participate in any session
> > > >       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> > > > mpl.java:264)
> > > >       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> > > > l.java:249)
> > > >       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> > > > icitObjects.java:633)
> > > >
> > > > I am using the tomcat 5.5.4 comes with the latest Pluto.
> > > >
> > > > I tried to follow this solution:
> > > > http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> > > >
> > > > Using tomcat 5.5.x, set crossContext="true" and set
> > > > emptySessionPath="true". It does not help, still the same exception.
> > > >
> > > > Someone please please help. Thanks!
> > > > Derek
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> > >
> > >
> >
> > --
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Hema Menon
> >
>

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


Re: portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
Thanks. Here's the exception I got:

14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
vlet jsp threw exception
java.lang.IllegalStateException: Cannot access session scope in page that does
ot participate in any session
       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
mpl.java:264)
       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
l.java:249)
       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
icitObjects.java:633)


It is so wired. I even can not google the exception. No one has seen
this before? Looks like the JSTL expression langaurage is working.
However, having problem to access the session from the JSP.

On Apr 4, 2005 2:41 PM, Hema Menon <me...@gmail.com> wrote:
> What exception are you getting with JSTL? There has been some
> discussions here regarding evaluating expressions in jstl, refer to
> this thread
> http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html
> 
> Hema
> 
> On Apr 4, 2005 4:37 PM, Derek Shen <de...@gmail.com> wrote:
> > Talking to myself again.
> >
> > Looks like the problem is with the combination of JSTL and portlet session.
> >
> > <c:out value="${sessionScope.test}"/> throws the exception, and
> > <%= request.getSession().getAttribute("test") %> is fine.
> >
> > and the attribute I set inside portlet sessio is available in the http
> > session on JSP.
> >
> > It is ugly if I am not able to use JSTL with JSP and portlet.
> >
> > On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
> > > Did not get response from the pluto mailing list.
> > >
> > > I tried it on the latest tomcat (5.5.7) just now and still have the
> > > same problem. Has anyone seen this exception before?
> > >
> > > java.lang.IllegalStateException: Cannot access session scope in page that does
> > > ot participate in any session
> > >       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> > > mpl.java:264)
> > >
> > > ---------- Forwarded message ----------
> > > From: Derek Shen <de...@gmail.com>
> > > Date: Apr 3, 2005 8:51 PM
> > > Subject: portlet session and http session
> > > To: pluto-dev@portals.apache.org
> > >
> > > Alright, I know that it is an old issue, around which a lot of
> > > discussion have been made.
> > >
> > > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> > >
> > > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> > >
> > > http://issues.apache.org/jira/browse/PLUTO-53
> > >
> > > Some people said that it has been resolved by tomcat and some others
> > > claimed that it is only working on Jetty and not tomcat. I am totally
> > > confused. It seems a very trivial problem. What I am trying to achieve
> > > is so simple:
> > >
> > > Inside the GenericPortlet doView, populate some data and put into the
> > > PortletSession (eithe portlet scope or application scope), and
> > > dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> > > is used to retrieve and present the data from session
> > > (${sessionScope...).
> > >
> > > Everytime I run my portlet, I gives me this:
> > >
> > > 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> > > vlet jsp threw exception
> > > java.lang.IllegalStateException: Cannot access session scope in page that does
> > > ot participate in any session
> > >       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> > > mpl.java:264)
> > >       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> > > l.java:249)
> > >       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> > > icitObjects.java:633)
> > >
> > > I am using the tomcat 5.5.4 comes with the latest Pluto.
> > >
> > > I tried to follow this solution:
> > > http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> > >
> > > Using tomcat 5.5.x, set crossContext="true" and set
> > > emptySessionPath="true". It does not help, still the same exception.
> > >
> > > Someone please please help. Thanks!
> > > Derek
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> >
> >
> 
> --
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Hema Menon
>

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


Re: portlet session and http session

Posted by Shah Amit <am...@hotmail.com>.
Following was the exact line that I removed.

<%@ page session="false" %>

And after that I didn't get that error anymore.

I dont know if yours is the same problem, but the exception looks like the 
same that I had so ...


Amit

----Original Message Follows----
From: "Shah Amit" <am...@hotmail.com>
Reply-To: "Jetspeed Developers List" <je...@jakarta.apache.org>
To: jetspeed-dev@jakarta.apache.org
Subject: Re: portlet session and http session
Date: Mon, 04 Apr 2005 19:19:29 -0400

I had the exact same exception. The problem was that on the top of the page, 
I had declared that the page should not participate in any session. I dont 
remember the exact syntax, but it was something to the affect of ---


<sOmEThIng session="false"> or something like that. I got rid of that line, 
and it worked for me after that.

Hope that helps,
Amit

----Original Message Follows----
From: Hema Menon <me...@gmail.com>
Reply-To: Hema Menon <me...@gmail.com>
To: Jetspeed Developers List <je...@jakarta.apache.org>, Derek Shen 
<de...@gmail.com>
Subject: Re: portlet session and http session
Date: Mon, 4 Apr 2005 16:41:24 -0500

What exception are you getting with JSTL? There has been some
discussions here regarding evaluating expressions in jstl, refer to
this thread
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html

Hema

On Apr 4, 2005 4:37 PM, Derek Shen <de...@gmail.com> wrote:
 > Talking to myself again.
 >
 > Looks like the problem is with the combination of JSTL and portlet 
session.
 >
 > <c:out value="${sessionScope.test}"/> throws the exception, and
 > <%= request.getSession().getAttribute("test") %> is fine.
 >
 > and the attribute I set inside portlet sessio is available in the http
 > session on JSP.
 >
 > It is ugly if I am not able to use JSTL with JSP and portlet.
 >
 > On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
 > > Did not get response from the pluto mailing list.
 > >
 > > I tried it on the latest tomcat (5.5.7) just now and still have the
 > > same problem. Has anyone seen this exception before?
 > >
 > > java.lang.IllegalStateException: Cannot access session scope in page 
that does
 > > ot participate in any session
 > >       at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
 > > mpl.java:264)
 > >
 > > ---------- Forwarded message ----------
 > > From: Derek Shen <de...@gmail.com>
 > > Date: Apr 3, 2005 8:51 PM
 > > Subject: portlet session and http session
 > > To: pluto-dev@portals.apache.org
 > >
 > > Alright, I know that it is an old issue, around which a lot of
 > > discussion have been made.
 > >
 > > 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
 > >
 > > 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
 > >
 > > http://issues.apache.org/jira/browse/PLUTO-53
 > >
 > > Some people said that it has been resolved by tomcat and some others
 > > claimed that it is only working on Jetty and not tomcat. I am totally
 > > confused. It seems a very trivial problem. What I am trying to achieve
 > > is so simple:
 > >
 > > Inside the GenericPortlet doView, populate some data and put into the
 > > PortletSession (eithe portlet scope or application scope), and
 > > dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
 > > is used to retrieve and present the data from session
 > > (${sessionScope...).
 > >
 > > Everytime I run my portlet, I gives me this:
 > >
 > > 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - 
Servlet.service() for se
 > > vlet jsp threw exception
 > > java.lang.IllegalStateException: Cannot access session scope in page 
that does
 > > ot participate in any session
 > >       at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
 > > mpl.java:264)
 > >       at 
org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
 > > l.java:249)
 > >       at 
org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
 > > icitObjects.java:633)
 > >
 > > I am using the tomcat 5.5.4 comes with the latest Pluto.
 > >
 > > I tried to follow this solution:
 > > 
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
 > >
 > > Using tomcat 5.5.x, set crossContext="true" and set
 > > emptySessionPath="true". It does not help, still the same exception.
 > >
 > > Someone please please help. Thanks!
 > > Derek
 > >
 >
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
 > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
 >
 >


--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

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



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



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


Re: portlet session and http session

Posted by Shah Amit <am...@hotmail.com>.
Following was the exact line that I removed.

<%@ page session="false" %>

And after that I didn't get that error anymore.

I dont know if yours is the same problem, but the exception looks like the 
same that I had so ...


Amit

----Original Message Follows----
From: "Shah Amit" <am...@hotmail.com>
Reply-To: "Jetspeed Developers List" <je...@jakarta.apache.org>
To: jetspeed-dev@jakarta.apache.org
Subject: Re: portlet session and http session
Date: Mon, 04 Apr 2005 19:19:29 -0400

I had the exact same exception. The problem was that on the top of the page, 
I had declared that the page should not participate in any session. I dont 
remember the exact syntax, but it was something to the affect of ---


<sOmEThIng session="false"> or something like that. I got rid of that line, 
and it worked for me after that.

Hope that helps,
Amit

----Original Message Follows----
From: Hema Menon <me...@gmail.com>
Reply-To: Hema Menon <me...@gmail.com>
To: Jetspeed Developers List <je...@jakarta.apache.org>, Derek Shen 
<de...@gmail.com>
Subject: Re: portlet session and http session
Date: Mon, 4 Apr 2005 16:41:24 -0500

What exception are you getting with JSTL? There has been some
discussions here regarding evaluating expressions in jstl, refer to
this thread
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html

Hema

On Apr 4, 2005 4:37 PM, Derek Shen <de...@gmail.com> wrote:
 > Talking to myself again.
 >
 > Looks like the problem is with the combination of JSTL and portlet 
session.
 >
 > <c:out value="${sessionScope.test}"/> throws the exception, and
 > <%= request.getSession().getAttribute("test") %> is fine.
 >
 > and the attribute I set inside portlet sessio is available in the http
 > session on JSP.
 >
 > It is ugly if I am not able to use JSTL with JSP and portlet.
 >
 > On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
 > > Did not get response from the pluto mailing list.
 > >
 > > I tried it on the latest tomcat (5.5.7) just now and still have the
 > > same problem. Has anyone seen this exception before?
 > >
 > > java.lang.IllegalStateException: Cannot access session scope in page 
that does
 > > ot participate in any session
 > >       at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
 > > mpl.java:264)
 > >
 > > ---------- Forwarded message ----------
 > > From: Derek Shen <de...@gmail.com>
 > > Date: Apr 3, 2005 8:51 PM
 > > Subject: portlet session and http session
 > > To: pluto-dev@portals.apache.org
 > >
 > > Alright, I know that it is an old issue, around which a lot of
 > > discussion have been made.
 > >
 > > 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
 > >
 > > 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
 > >
 > > http://issues.apache.org/jira/browse/PLUTO-53
 > >
 > > Some people said that it has been resolved by tomcat and some others
 > > claimed that it is only working on Jetty and not tomcat. I am totally
 > > confused. It seems a very trivial problem. What I am trying to achieve
 > > is so simple:
 > >
 > > Inside the GenericPortlet doView, populate some data and put into the
 > > PortletSession (eithe portlet scope or application scope), and
 > > dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
 > > is used to retrieve and present the data from session
 > > (${sessionScope...).
 > >
 > > Everytime I run my portlet, I gives me this:
 > >
 > > 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - 
Servlet.service() for se
 > > vlet jsp threw exception
 > > java.lang.IllegalStateException: Cannot access session scope in page 
that does
 > > ot participate in any session
 > >       at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
 > > mpl.java:264)
 > >       at 
org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
 > > l.java:249)
 > >       at 
org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
 > > icitObjects.java:633)
 > >
 > > I am using the tomcat 5.5.4 comes with the latest Pluto.
 > >
 > > I tried to follow this solution:
 > > 
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
 > >
 > > Using tomcat 5.5.x, set crossContext="true" and set
 > > emptySessionPath="true". It does not help, still the same exception.
 > >
 > > Someone please please help. Thanks!
 > > Derek
 > >
 >
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
 > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
 >
 >


--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

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



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



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


Re: portlet session and http session

Posted by Shah Amit <am...@hotmail.com>.
I had the exact same exception. The problem was that on the top of the page, 
I had declared that the page should not participate in any session. I dont 
remember the exact syntax, but it was something to the affect of ---


<sOmEThIng session="false"> or something like that. I got rid of that line, 
and it worked for me after that.

Hope that helps,
Amit

----Original Message Follows----
From: Hema Menon <me...@gmail.com>
Reply-To: Hema Menon <me...@gmail.com>
To: Jetspeed Developers List <je...@jakarta.apache.org>, Derek Shen 
<de...@gmail.com>
Subject: Re: portlet session and http session
Date: Mon, 4 Apr 2005 16:41:24 -0500

What exception are you getting with JSTL? There has been some
discussions here regarding evaluating expressions in jstl, refer to
this thread
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html

Hema

On Apr 4, 2005 4:37 PM, Derek Shen <de...@gmail.com> wrote:
 > Talking to myself again.
 >
 > Looks like the problem is with the combination of JSTL and portlet 
session.
 >
 > <c:out value="${sessionScope.test}"/> throws the exception, and
 > <%= request.getSession().getAttribute("test") %> is fine.
 >
 > and the attribute I set inside portlet sessio is available in the http
 > session on JSP.
 >
 > It is ugly if I am not able to use JSTL with JSP and portlet.
 >
 > On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
 > > Did not get response from the pluto mailing list.
 > >
 > > I tried it on the latest tomcat (5.5.7) just now and still have the
 > > same problem. Has anyone seen this exception before?
 > >
 > > java.lang.IllegalStateException: Cannot access session scope in page 
that does
 > > ot participate in any session
 > >       at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
 > > mpl.java:264)
 > >
 > > ---------- Forwarded message ----------
 > > From: Derek Shen <de...@gmail.com>
 > > Date: Apr 3, 2005 8:51 PM
 > > Subject: portlet session and http session
 > > To: pluto-dev@portals.apache.org
 > >
 > > Alright, I know that it is an old issue, around which a lot of
 > > discussion have been made.
 > >
 > > 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
 > >
 > > 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
 > >
 > > http://issues.apache.org/jira/browse/PLUTO-53
 > >
 > > Some people said that it has been resolved by tomcat and some others
 > > claimed that it is only working on Jetty and not tomcat. I am totally
 > > confused. It seems a very trivial problem. What I am trying to achieve
 > > is so simple:
 > >
 > > Inside the GenericPortlet doView, populate some data and put into the
 > > PortletSession (eithe portlet scope or application scope), and
 > > dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
 > > is used to retrieve and present the data from session
 > > (${sessionScope...).
 > >
 > > Everytime I run my portlet, I gives me this:
 > >
 > > 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - 
Servlet.service() for se
 > > vlet jsp threw exception
 > > java.lang.IllegalStateException: Cannot access session scope in page 
that does
 > > ot participate in any session
 > >       at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
 > > mpl.java:264)
 > >       at 
org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
 > > l.java:249)
 > >       at 
org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
 > > icitObjects.java:633)
 > >
 > > I am using the tomcat 5.5.4 comes with the latest Pluto.
 > >
 > > I tried to follow this solution:
 > > 
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
 > >
 > > Using tomcat 5.5.x, set crossContext="true" and set
 > > emptySessionPath="true". It does not help, still the same exception.
 > >
 > > Someone please please help. Thanks!
 > > Derek
 > >
 >
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
 > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
 >
 >


--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

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



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


Re: portlet session and http session

Posted by Hema Menon <me...@gmail.com>.
What exception are you getting with JSTL? There has been some
discussions here regarding evaluating expressions in jstl, refer to
this thread
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html

Hema

On Apr 4, 2005 4:37 PM, Derek Shen <de...@gmail.com> wrote:
> Talking to myself again.
> 
> Looks like the problem is with the combination of JSTL and portlet session.
> 
> <c:out value="${sessionScope.test}"/> throws the exception, and
> <%= request.getSession().getAttribute("test") %> is fine.
> 
> and the attribute I set inside portlet sessio is available in the http
> session on JSP.
> 
> It is ugly if I am not able to use JSTL with JSP and portlet.
> 
> On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
> > Did not get response from the pluto mailing list.
> >
> > I tried it on the latest tomcat (5.5.7) just now and still have the
> > same problem. Has anyone seen this exception before?
> >
> > java.lang.IllegalStateException: Cannot access session scope in page that does
> > ot participate in any session
> >       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> > mpl.java:264)
> >
> > ---------- Forwarded message ----------
> > From: Derek Shen <de...@gmail.com>
> > Date: Apr 3, 2005 8:51 PM
> > Subject: portlet session and http session
> > To: pluto-dev@portals.apache.org
> >
> > Alright, I know that it is an old issue, around which a lot of
> > discussion have been made.
> >
> > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> >
> > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> >
> > http://issues.apache.org/jira/browse/PLUTO-53
> >
> > Some people said that it has been resolved by tomcat and some others
> > claimed that it is only working on Jetty and not tomcat. I am totally
> > confused. It seems a very trivial problem. What I am trying to achieve
> > is so simple:
> >
> > Inside the GenericPortlet doView, populate some data and put into the
> > PortletSession (eithe portlet scope or application scope), and
> > dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> > is used to retrieve and present the data from session
> > (${sessionScope...).
> >
> > Everytime I run my portlet, I gives me this:
> >
> > 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> > vlet jsp threw exception
> > java.lang.IllegalStateException: Cannot access session scope in page that does
> > ot participate in any session
> >       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> > mpl.java:264)
> >       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> > l.java:249)
> >       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> > icitObjects.java:633)
> >
> > I am using the tomcat 5.5.4 comes with the latest Pluto.
> >
> > I tried to follow this solution:
> > http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> >
> > Using tomcat 5.5.x, set crossContext="true" and set
> > emptySessionPath="true". It does not help, still the same exception.
> >
> > Someone please please help. Thanks!
> > Derek
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> 


-- 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

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


Re: portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
Talking to myself again.

Looks like the problem is with the combination of JSTL and portlet session.

<c:out value="${sessionScope.test}"/> throws the exception, and
<%= request.getSession().getAttribute("test") %> is fine.

and the attribute I set inside portlet sessio is available in the http
session on JSP.

It is ugly if I am not able to use JSTL with JSP and portlet.

On Apr 4, 2005 2:03 PM, Derek Shen <de...@gmail.com> wrote:
> Did not get response from the pluto mailing list.
> 
> I tried it on the latest tomcat (5.5.7) just now and still have the
> same problem. Has anyone seen this exception before?
> 
> java.lang.IllegalStateException: Cannot access session scope in page that does
> ot participate in any session
>       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> mpl.java:264)
> 
> ---------- Forwarded message ----------
> From: Derek Shen <de...@gmail.com>
> Date: Apr 3, 2005 8:51 PM
> Subject: portlet session and http session
> To: pluto-dev@portals.apache.org
> 
> Alright, I know that it is an old issue, around which a lot of
> discussion have been made.
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> 
> http://issues.apache.org/jira/browse/PLUTO-53
> 
> Some people said that it has been resolved by tomcat and some others
> claimed that it is only working on Jetty and not tomcat. I am totally
> confused. It seems a very trivial problem. What I am trying to achieve
> is so simple:
> 
> Inside the GenericPortlet doView, populate some data and put into the
> PortletSession (eithe portlet scope or application scope), and
> dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> is used to retrieve and present the data from session
> (${sessionScope...).
> 
> Everytime I run my portlet, I gives me this:
> 
> 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> vlet jsp threw exception
> java.lang.IllegalStateException: Cannot access session scope in page that does
> ot participate in any session
>       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> mpl.java:264)
>       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> l.java:249)
>       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> icitObjects.java:633)
> 
> I am using the tomcat 5.5.4 comes with the latest Pluto.
> 
> I tried to follow this solution:
> http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> 
> Using tomcat 5.5.x, set crossContext="true" and set
> emptySessionPath="true". It does not help, still the same exception.
> 
> Someone please please help. Thanks!
> Derek
>

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


portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
Did not get response from the pluto mailing list. 

I tried it on the latest tomcat (5.5.7) just now and still have the
same problem. Has anyone seen this exception before?

java.lang.IllegalStateException: Cannot access session scope in page that does
ot participate in any session
       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
mpl.java:264)

---------- Forwarded message ----------
From: Derek Shen <de...@gmail.com>
Date: Apr 3, 2005 8:51 PM
Subject: portlet session and http session
To: pluto-dev@portals.apache.org


Alright, I know that it is an old issue, around which a lot of
discussion have been made.

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707

http://issues.apache.org/jira/browse/PLUTO-53

Some people said that it has been resolved by tomcat and some others
claimed that it is only working on Jetty and not tomcat. I am totally
confused. It seems a very trivial problem. What I am trying to achieve
is so simple:

Inside the GenericPortlet doView, populate some data and put into the
PortletSession (eithe portlet scope or application scope), and
dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
is used to retrieve and present the data from session
(${sessionScope...).

Everytime I run my portlet, I gives me this:

14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
vlet jsp threw exception
java.lang.IllegalStateException: Cannot access session scope in page that does
ot participate in any session
       at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
mpl.java:264)
       at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
l.java:249)
       at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
icitObjects.java:633)

I am using the tomcat 5.5.4 comes with the latest Pluto.

I tried to follow this solution:
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html

Using tomcat 5.5.x, set crossContext="true" and set
emptySessionPath="true". It does not help, still the same exception.

Someone please please help. Thanks!
Derek

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


Re: portlet session and http session

Posted by Derek Shen <de...@gmail.com>.
Talking to myself again.

Looks like the problem is with the combination of JSTL and portlet session.

<c:out value="${sessionScope.test}"/> throws the exception, and
<%= request.getSession().getAttribute("test") %> is fine.

and the attribute I set inside portlet sessio is available in the http
session on JSP.

It is ugly if I am not able to use JSTL with JSP and portlet.

On Apr 3, 2005 8:51 PM, Derek Shen <de...@gmail.com> wrote:
> Alright, I know that it is an old issue, around which a lot of
> discussion have been made.
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101721
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-dev@portals.apache.org&msgId=2101707
> 
> http://issues.apache.org/jira/browse/PLUTO-53
> 
> Some people said that it has been resolved by tomcat and some others
> claimed that it is only working on Jetty and not tomcat. I am totally
> confused. It seems a very trivial problem. What I am trying to achieve
> is so simple:
> 
> Inside the GenericPortlet doView, populate some data and put into the
> PortletSession (eithe portlet scope or application scope), and
> dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
> is used to retrieve and present the data from session
> (${sessionScope...).
> 
> Everytime I run my portlet, I gives me this:
> 
> 14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - Servlet.service() for se
> vlet jsp threw exception
> java.lang.IllegalStateException: Cannot access session scope in page that does
> ot participate in any session
>        at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
> mpl.java:264)
>        at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
> l.java:249)
>        at org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
> icitObjects.java:633)
> 
> I am using the tomcat 5.5.4 comes with the latest Pluto.
> 
> I tried to follow this solution:
> http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
> 
> Using tomcat 5.5.x, set crossContext="true" and set
> emptySessionPath="true". It does not help, still the same exception.
> 
> Someone please please help. Thanks!
> Derek
>