voyent
Session Timeout Not working  XML
Forum Index -> General Help
Author Message
MandarDadhe

Joined: 05/Dec/2012 03:15:02
Messages: 9
Offline


Hi,

My application uses Iceface 3.0 with weblogic 10.1.3. we want the session to expire after 30 min. I have the following entries in my web.xml

<session-config>
<session-timeout>30</session-timeout>
</session-config>
....
....
....
<context-param>
<param-name>org.icefaces.strictSessionTimeout</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.icefaces.sessionExpiredRedirectURI</param-name>
<param-value>/xhtml/SessionExpired.xhtml</param-value>
</context-param>

I have added the icepush.jar to my project.
I am expecting the session expired page to show. But it does not comeup.
When I click on any link on the page, in the console I get the javax.faces.application.ViewExpiredException: and not the sessionexpired expection as some of the icefaces documentation mentions.

Any pointer to why the sesison expire page does not show? Could it be beacuse the expection is not what it should be?
Am I missing any config params which would get the right expection and trigger the required session expired page?

I don't even get the default modal popup as the documentaion says, if i remove the sessionExpiredRedirectURI from web.xml

Thanks for you help in advance.

Mandar.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Are you seeing any error in the server logs? Try using a simple HTML page, rather than a JSF XHTML page for the redirect.

Philip

.
MandarDadhe

Joined: 05/Dec/2012 03:15:02
Messages: 9
Offline


philip.breau wrote:
Are you seeing any error in the server logs? Try using a simple HTML page, rather than a JSF XHTML page for the redirect.

Philip 


Thanks for response Philip. Tried the solution but doe not work. :(
My problem seems to be with the session expiry. As per my understanding Icefaces will redirect to the session expiry page when it gets SessionExpiredException. I instead get ViewExpiredException and not SessionExpiredException. I don't know if Icefaces will do the Redirect with VIewExpiredException (does not do it now) Any pointers to why I might be getting ViewExpiredException instead of SessionExpired?
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


Probably best if you provide a small test case for us to try out.

The org.icefaces.sessionExpiredRedirectURI parameter only applies if you are using the compatibility suite of components a per the note on the documentation page:

http://www.icesoft.org/wiki/display/ICE/sessionExpiredRedirectURI

Does your app behave properly on something like Tomcat or is this specific to WebLogic?
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


Philip has a created a test case and we've opened a JIRA for this apparent regression. Thanks for bringing it to our attention.

http://jira.icesoft.org/browse/ICE-8858
MandarDadhe

Joined: 05/Dec/2012 03:15:02
Messages: 9
Offline


dsinotte wrote:
Philip has a created a test case and we've opened a JIRA for this apparent regression. Thanks for bringing it to our attention.

http://jira.icesoft.org/browse/ICE-8858 


Thanks for taking this up! Like you pointed out in the previous comment I understand that org.icefaces.sessionExpiredRedirectURI parameter only applies if you are using the compatibility suite of components....So for now I have stopped thinking about the Redirect part. All I am trying now is to get the defeault popup provided by Icefaces. But even that is not happening. I have not tried with server other than weblogic. But I am thinking that this could be something with weblogic. For now we are using a workaround of catching the ViewExpiredException and redirecting.

Thanks,
Mandar.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Mandar,
Are you using the <ice:outputConnectionStatus> component? This component actually overrides both the Session expiry popup and redirect. I had overlooked in my own test case. If you are using it, could you try removing it and retest?

Thanks

.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


I should also note that you can still use the outputConnectionStatus component and have the session expired popup at the same time. Just add the following:

Code:
 <ice:outputConnectionStatus showPopupOnDisconnect="true"/>
 


Philip

.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team