我使用的是JSF 1.2 + Seam 2.2.1和JBossAS 4.0.4。Seam不捕獲ViewExpiredException
我在文件pages.xml中輸入以下內容:
<exception>
<end-conversation/>
<redirect view-id="/facelets/error.xhtml"/>
</exception>
但是,如果我在一個commandLink和一個命令單擊會話過期後,服務器會拋出以下異常:
12:19:09,671 WARN [lifecycle] executePhase(RESTORE_VIEW 1,[email protected]) threw exception
javax.faces.application.ViewExpiredException: viewId:/facelets/login.xhtml - View /facelets/login.xhtml could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
也可能值得注意的是,沒有任何迴應得到任何回報。
我已經試圖明確捕捉異常,但它不起作用。
有什麼建議嗎?
都能跟得上。沒有什麼我作爲一個exceptio類工程。 – 2011-05-13 12:35:33