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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to