1 Reply Latest reply on Oct 24, 2014 6:21 PM by hjshi2000

    error page  not working on jboss 7.1.3

    hjshi2000

      Hi, I have web.xml like this:

       

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

       

      <error-page>

       

          <exception-type>java.lang.Throwable</exception-type>

          <location>/error.html</location>

        </error-page>

      </web-app>



      However, when a servlet throws an exception, it always return jboss internal default error page, not the error page  I defined in my web.xml


      Any idea?