File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error-page for ViewExpiredException ignored by my jsf implementation

 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Had the same problem - try how it works with PROJECT_STAGE = Production
in your web.xml.
 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure you need a custom exception handler.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic