Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
jon kempo
Handle global exception is failing with LIFERAY + JSF help plz!!!
November 19, 2012 5:30 AM
Answer

jon kempo

Rank: New Member

Posts: 1

Join Date: November 19, 2012

Recent Posts

Hi,

I am using Liferay + primefaces + weblogic application. I want to redirect to index page when session timeout but it fails.

My web.xml

<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/faces/inicio.xhtml?reason=expired</location>
</error-page>

Trace

12:50:48,601 ERROR [status_jsp:959] org.portletfaces.bridge.BridgeException: jav
ax.faces.FacesException: viewId:/xhtml/expedientes/busquedaExpedientes.xhtml - N
o se pudo restablecer la vista /xhtml/expedientes/busquedaExpedientes.xhtml.
org.portletfaces.bridge.BridgeException: javax.faces.FacesException: viewId:/xht
ml/expedientes/busquedaExpedientes.xhtml - No se pudo restablecer la vista /xhtm
l/expedientes/busquedaExpedientes.xhtml.

Caused by: javax.faces.application.ViewExpiredException: viewId:/xhtml/expedient
es/busquedaExpedientes.xhtml - No se pudo restablecer la vista /xhtml/expediente
s/busquedaExpedientes.xhtml.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.jav

Could you give any advise about what happens.

Thanks
Neil Griffin
RE: Handle global exception is failing with LIFERAY + JSF help plz!!!
November 20, 2012 8:54 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2041

Join Date: July 26, 2005

Recent Posts

When you get a chance, please upgrade from PortletFaces Bridge to Liferay Faces Bridge. Having said that, the web.xml <error-page> element is a Servlet 3.0 feature that will redirect to a specific URL. I've never tried it, but I think you would need to specify a portal page like /web/community/pagename instead of a JSF view like /faces/inicio.xhtml?reason=expired