[jboss-user] [JBoss Seam] - problem using seam exception handling mecanism
zdaler
do-not-reply at jboss.com
Thu May 31 04:52:16 EDT 2007
I'm having trouble using the seam handling mecanism (using seam 1.2.1) :
I've added this in pages.xml
<exception>
| <end-conversation/>
| <redirect view-id="/error.xhtml" />
| </exception>
I did set <core:init debug="false" jndi-pattern="@jndiPattern@" /> in components.xml and <param-name>facelets.DEVELOPMENT</param-name><param-value>false</param-value> in web.xml
If i manually throw an exception in my code, the page just gets reloaded (no redirect) and a face message "Transaction failed" is set ....
If I try to create (and the throw) a custom exception like this :
@Redirect(viewId="/error.xhtml", end=true)
| @ApplicationException(rollback=true)
| public class MyException extends RuntimeException {
I get the exact same behaviour : no redirect, only the "Transaction failed" faces message.
I'm pretty sure the exceptionFilter is on because I have this in my log on application start :
anonymous wrote : 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.multipartFilter
| 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.contextFilter
| 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.exceptionFilter
| 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.redirectFilter
Can anyone give me a hint a what could be wrong ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050029#4050029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050029
More information about the jboss-user
mailing list