• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

error-page for ViewExpiredException ignored by my jsf implementation

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm pretty sure you need a custom exception handler.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic