aspose file tools*
The moose likes JSF and the fly likes error-page for ViewExpiredException ignored by my jsf implementation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "error-page for ViewExpiredException ignored by my jsf implementation" Watch "error-page for ViewExpiredException ignored by my jsf implementation" New topic
Author

error-page for ViewExpiredException ignored by my jsf implementation

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,
I have set up the following:

However, when a postback occurs and the view cannot be restored, I get this in the console:

which means "the view could not be restored" and my error page is not displayed at all...
Any idea?
Thanks in advance,
J.
P.S. I use Jsf 2.0 and richfaces 4.0
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218
Had the same problem - try how it works with PROJECT_STAGE = Production
in your web.xml.
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Thanks Brendan,
This was not configured in my app. And "Production" seems to be the default setting.
Still I tried to set it explicitely to "Production" and it does not work either...
Any other idea?
J.

PS Here is my web.xml:

Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218
Hi, your web.xml never made it through, but never mind here's what I have on a dev
box:



My general understanding has been that with a 'Development ' setting the error-page
mechanism doesn't work, only with Production. I just gave up with it and forcefully
navigate to an error page when an unexpected exception is encountered.

Having said that ViewExpiredExceptions would seem to be an 'exceptional' situation,
no pun intended. You need to write a custom exception handler to deal with these, do
you have access to the book JSF 2.0 The Complete Reference (Burns/Schalk) - if so
turn to p282 and your questions will be answered.

Brendan.
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hi Brendan,
I was pretty sure that custom exception handlers were only needed when one needed a custom/specific behavior.
What I require here is just for tomcat to load a plain html page.
Keep me posted if you have any other idea.
Thanks anyway.
Julien.
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
I am just restarting this thread because I was not able to find any information elsewhere.
Can anyone please help?
Thanks in advance,
J.
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218
I'm pretty sure you need a custom exception handler.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error-page for ViewExpiredException ignored by my jsf implementation