Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception Handling - using an error page

 
Kurt Boets
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to assure correct exception handling; depending on the exception, the user is forwared to an error page.
I did develop a Filter class, an ErrorAwareRequestWrapper class that wraps the http error codes.
When I do a deploy (on a BEA Weblogic 8.1) I receive an error.
Hereby I will show you my :
  • The Filter class.
  • The ErrorAwareRequestWrapper class
  • The web.xml file
  • The stack trace of the exception thrown by the server










  • Has anyone yet expercience with handling exceptions using error pages or
    filters ?
    All help is welcome.
    Thx,
     
    Varun Khanna
    Ranch Hand
    Posts: 1400
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Try to make your ErrorHandlerFilter class "public"
     
    Kurt Boets
    Greenhorn
    Posts: 14
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Indeed, it works now.
    Thx,
     
    Dinesh Gupta
    Greenhorn
    Posts: 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi,

    This a very useful post. I want to implement same type of filter.
    I am using JSF and Struts tiles component.
    The problem is that sendError method of the ErrorAwareRequestWrapper is not called.

    If anyone have idea, Please reply.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic