[jboss-user] [JBoss Seam] - Exception handling with @HttpError not working
susnet
do-not-reply at jboss.com
Tue May 15 17:46:38 EDT 2007
My Exception class:
| @ApplicationException(rollback=true)
| @HttpError (errorCode=HttpServletResponse.SC_NOT_FOUND)
| public class PageNotFoundException extends Exception {
|
|
| /** Creates a new instance of PageNotFoundException */
| public PageNotFoundException () {
| super ("Page not found");
| }
| }
|
In web.xml
| <error-page>
| <error-code>404</error-code>
| <location>/pages/error/error404.xhtml</location>
| </error-page>
|
Instead I get a 500 error.
Why is this not working? Any ideas?
I use Seam 1.2.1 on JBoss 4.0.5. I don't have any other problems with my application.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045963#4045963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045963
More information about the jboss-user
mailing list