Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6534001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:11:52+00:00 2026-05-25T10:11:52+00:00

I want to send the user to one error page whenever an error occurs,

  • 0

I want to send the user to one error page whenever an error occurs, whether it be a 404, 500..etc. I was using the error-code in the web.xml but I want to trap all instances of java.lang.Throwable since I believe any error is a subclass of java.lang.Throwable. Also, when I used the error-code scheme, the stacktraces were not appearing in Tomcat’s catlina.out anymore…any ideas? I wasn’t sure if JSF2’s ExceptionHandler API handled 404s?

<error-page>
    <error-code>404</error-code>
    <location>/pageNotFound.html</location>
  </error-page>
  <error-page>
    <error-code>500</error-code>
    <location>/systemError.html</location>
  </error-page>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:11:52+00:00Added an answer on May 25, 2026 at 10:11 am

    when I used the error-code scheme, the stacktraces were not appearing in Tomcat’s catlina.out anymore

    This is not the standard behaviour. Your problem is caused by something else. Perhaps it’s the wrong testing methodology or perhaps you’re suppressing exceptions and manually redirecting in some Filter or like. This is impossible to answer based on the as far provided information.


    I wasn’t sure if JSF2’s ExceptionHandler API handled 404s?

    Depends. If the request URL matches the FacesServlet, then it would by default throw a FileNotFoundException which eventually ends up as HTTP 500. If the request URL does not match the FacesServlet or any other servlet, then the servlet container will handle it as HTTP 404.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to send an email to user after he sign-up with code.for ex
For testing purposes I want send mail to my localhost user account rather than
I want to send ViewData.model to Special action with the last user data entry.
When a user presses the SEND(return) button I want the keyboard to retract and
I am trying to send a new user name to add to one of
I want to send a message with socket->ops->sendmsg() in kernel module. One of the
i have one contact form, when user submit all value will send(email) to admin.But
I want to send one of two async requests based on a click event
I want to write code in Ruby witch net::ssh that run commands one by
We want to send User downloaded e-book XYZ to timeline. We have a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.