How do I configure a custom error page in JBoss or Tomcat?

Solution Verified - Updated -


  • How do I use a custom error page in a web app?
  • How to configure general http error 404 and 500?
  • Technical details are displayed when Exception occurs, which is not valuable to End User.
  • How to handle the common errors like 404 and 500 in JBoss App Server?
  • How to hide JBoss Web debug and trace output in browser window?
  • Custom error page for HTTP 405 error doesn't work in JBoss EAP 6.2.
  • How to configure a custom error page in EAP 6, when the context itself is not available in JBoss i.e out side JBoss?
  • Server Start hit page Customize i.e How to remove all 404 related error and put the custom error page with JBoss EAP6.
  • How to customize page when jboss eap server start up hit?
  • In JBoss EAP 5 there was a statusservlet http://localhost:8080/status?full=true.Is there a replacement for this in JBoss EAP 6?How to disable it?
  • I read the article, but I dont understand how to configure it once for all webapps. How can I replace the blank page for all my webapps by custom page in my root webapp ?
  • I'm trying to hide http errors like http 404 when JBoss EAP throws error messages in the web browser. How do we redirect errors to an error page? What is the equivalent in JBoss? And how do we set it?
  • Verbose error messages are enabled on the server. Verbose error messages often contain information which is useful to an attacker informing and refining attack strategies. So we need to configure custom error messages in JBoss. We are looking for a global solution as we have for EAP5.
  • How can I configure a custom content for errors coming from JAX-RS Web Services?


  • Red Hat JBoss Enterprise Application Platform (EAP) 5.x, 6.x,7.x
  • Red Hat JBoss Enterprise Web Server (EWS) 2.x
    • Tomcat 6.x, 7.x
  • Red Hat JBoss Web Server (JWS) 3.x
    • Tomcat 7.x, 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In