10 Replies Latest reply on Aug 14, 2013 8:23 PM by xiang yingbing

    Custom 500 error page not working with JBoss AS 7

    xiang yingbing Master

      Dear guys,

       

       

      In my jboss as 7.2.0 standalong.xml, I configured principalsQuery like this:

                       <module-option name="principalsQuery" value="SELECT hashedPassword FROM User WHERE username=? and activated=true and locked=false"/>

       

      my web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
          <context-param>
            <param-name>PARAMETER_ENCODING</param-name>
            <param-value>UTF-8</param-value>
          </context-param>
          <!-- Production,Development,UnitTest,SystemTest,Extension -->
          <context-param>
              <param-name>javax.faces.PROJECT_STAGE</param-name>
              <param-value>Production</param-value>
          </context-param>
          <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <!-- do NOT use 'server' value, because it will cause javax.faces.application.ViewExpiredException -->
              <param-value>client</param-value>
          </context-param>
          <!-- JBWEB000065: HTTP Status 500 - JBAS013323: Invalid User -->
          <!-- -->
          <error-page>
              <error-code>500</error-code>
              <location>/lock-force-offline.xhtml</location>
          </error-page>
          <error-page>
              <exception-type>java.lang.SecurityException</exception-type>
              <location>/security-exception.xhtml</location>
          </error-page>
          <error-page>
              <exception-type>javax.ejb.EJBAccessException:</exception-type>
              <location>/lock-force-offline.xhtml</location>
          </error-page>
      
          <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
          </servlet-mapping>
          <session-config>
              <session-timeout>600</session-timeout>
          </session-config>
          ...
      
      </web-app>
      

       

       

      If one user has logged in, and I (the admin) set its 'locked' to true and flush him in the JAAS CACHE:

      public void flushJaasCache(String securityDomain, String jaasUsername) {
      
      
      try {
      
      
      
      Object[] params = { jaasUsername };
      
      
      
      String[] signature = { "java.lang.String" };
      
      
      
      
      
      javax.management.MBeanServerConnection mbeanServerConnection 
      
      
      
      
      = java.lang.management.ManagementFactory
      
      
      
      
      
      .getPlatformMBeanServer();
      
      
      
      javax.management.ObjectName mbeanName = new javax.management.ObjectName(
      
      
      
      
      
      "jboss.as:subsystem=security,security-domain="
      
      
      
      
      
      
      
      + securityDomain);
      
      
      
      mbeanServerConnection.invoke(mbeanName, "flushCache", params,
      
      
      
      
      
      signature);
      
      
      } catch (Exception e) {
      
      
      
      throw new SecurityException(e);
      
      
      }
      
      }
      
      

       

       

       

      This user(is logged in) will be redirected to bellow page:

       

      JBWEB000065: HTTP Status 500 -


      JBWEB000309: type JBWEB000067: Status report

      JBWEB000068: message

      JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.

       

       

       

      And the console exception is:

       

      22:29:50,427 ERROR [stderr] (http-127.0.0.1/127.0.0.1:80-3) Caused by: javax.ejb.EJBAccessException: JBAS013323: Invalid User

       

       

      Why the expected page "/lock-force-offline.xhtml" is NOT displayed???

       

      Is this a bug???

        • 1. Re: Custom 500 error page not working with JBoss AS 7
          xiang yingbing Master

          I searched many web pages, many guys met such issue, but no answer is posted.

           

          For example:

          http://stackoverflow.com/questions/16694675/custom-500-error-page-not-working-with-jboss-as-7-1-1

          https://community.jboss.org/message/819337

           

           

           

          Please help me!

          Thank you very much!

          • 2. Re: Custom 500 error page not working with JBoss AS 7
            jaikiran pai Master

            What happens if you don't involve JSF in this? Some plain html page instead of the xhtml page.

            • 3. Re: Custom 500 error page not working with JBoss AS 7
              xiang yingbing Master

              I think JBoss AS 7 should had set code instead of status of HttpRespone to 500.

               

              What is your opinion?

              • 5. Re: Custom 500 error page not working with JBoss AS 7
                jaikiran pai Master

                Please post the entire exception stacktrace too.

                • 6. Re: Custom 500 error page not working with JBoss AS 7
                  Tomaz Cerar Master

                  Can you try with WildFly 8 alpha4 if this is still issue?

                  • 7. Re: Custom 500 error page not working with JBoss AS 7
                    xiang yingbing Master

                    What happens if you don't involve JSF in this? Some plain html page instead of the xhtml page.

                     

                    ~~~~~~~~~~ The result is same.

                     

                     

                    1. error code in web.xml


                    <error-page>


                    <error-code>500</error-code>


                    <location>/lock-force-offline.html</location>

                    </error-page>

                     

                     

                    2. I create new file lock-force-offline.html with simple html.

                     

                     

                    3. The error page is still:

                    JBWEB000065: HTTP Status 500 -


                    JBWEB000309: type JBWEB000067: Status report

                    JBWEB000068: message

                    JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.

                     

                     

                    3. The full exception:

                     

                    23:26:46,945 INFO  [com.ybxiang.forum.servlet.filter.UserUrltrackFilter] (http-/127.0.0.1:80-9) JBAS013323: Invalid User

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9) javax.servlet.ServletException: JBAS013323: Invalid User

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.ybxiang.forum.servlet.filter.UserUrltrackFilter.doFilter(UserUrltrackFilter.java:52)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.ybxiang.forum.servlet.filter.UserOnlineStatusRefreshingFilter.doFilter(UserOnlineStatusRefreshingFilter.java:40)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.ybxiang.forum.servlet.filter.ServletRequestPrintingFilter.doFilter(ServletRequestPrintingFilter.java:72)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.ybxiang.forum.servlet.filter.EncodingFilter.doFilter(EncodingFilter.java:37)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at java.lang.Thread.run(Thread.java:722)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9) Caused by: javax.ejb.EJBAccessException: JBAS013323: Invalid User

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:54)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:45)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at java.security.AccessController.doPrivileged(Native Method)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:74)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                     

                    23:26:46,945 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.ybxiang.forum.ejb.session.IMessageSession$$$view11.getUnreadMessageCounter(Unknown Source)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.ybxiang.forum.jsfmbean.message.MessageCachingMBean.getUnreadMessageCounterByName(MessageCachingMBean.java:27)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at java.lang.reflect.Method.invoke(Method.java:601)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:735)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.el.BeanELResolver.invoke(BeanELResolver.java:467)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:246)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.el.parser.AstValue.getValue(AstValue.java:156)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIParameter.getValue(UIParameter.java:143)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.renderkit.html_basic.OutputMessageRenderer.encodeEnd(OutputMessageRenderer.java:103)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:881)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.renderkit.html_basic.OutputLinkRenderer.encodeChildren(OutputLinkRenderer.java:124)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:439)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

                     

                    23:26:46,961 ERROR [stderr] (http-/127.0.0.1:80-9)     ... 28 more

                    • 8. Re: Custom 500 error page not working with JBoss AS 7
                      xiang yingbing Master

                      If I comment out all of my Filters except EncodingFilter , The problem is same.

                       

                      If I comment out EncodingFilter too, the error pageis displayed!!!

                       

                      Is there some wrong with my EncodingFilter ?

                       

                       

                      package com.ybxiang.forum.servlet.filter;

                       

                      import java.io.IOException;

                      import java.io.UnsupportedEncodingException;

                      import java.util.logging.Logger;

                       

                      import javax.servlet.*;

                      import javax.servlet.http.HttpServletRequest;

                      import javax.servlet.http.HttpServletResponse;

                       

                      import com.ybxiang.forum.jsfmbean.ParameterHelper;

                       

                      /**

                      * http://bbs.csdn.net/topics/300037688

                      * @author yingbinx

                      *

                      */

                      @javax.servlet.annotation.WebFilter("/*")

                      public class EncodingFilter implements Filter {

                          static final Logger logger = Logger.getLogger(EncodingFilter.class.getName());

                       

                          //FilterConfig config;

                       

                          public void doFilter(ServletRequest r1, ServletResponse r2, FilterChain chain) {

                              HttpServletRequest request = (HttpServletRequest)r1;

                              HttpServletResponse response = (HttpServletResponse)r2;

                       

                              try {

                                  request.setCharacterEncoding(ParameterHelper.ENCODING);

                                  response.setCharacterEncoding(ParameterHelper.ENCODING);

                              } catch (UnsupportedEncodingException e) {

                                  logger.info(e.getMessage());

                                  e.printStackTrace();

                              }

                       

                              try {

                                  chain.doFilter(r1, r2);

                              } catch (IOException e) {

                                  logger.info(e.getMessage());

                                  e.printStackTrace();

                              } catch (ServletException e) {

                                  logger.info(e.getMessage());

                                  e.printStackTrace();

                              }

                          }

                          @Override

                          public void destroy() {

                          }

                          @Override

                          public void init(FilterConfig arg0) throws ServletException {

                              //config = arg0;

                          }

                      }

                      • 9. Re: Custom 500 error page not working with JBoss AS 7
                        Stephen Coy Master

                        You are catching and swallowing the ServletException, so the container never sees it:

                        {code:java}        try {

                                    chain.doFilter(r1, r2);

                                } catch (IOException e) {

                                    logger.info(e.getMessage());

                                    e.printStackTrace();

                                } catch (ServletException e) {              // <--------------

                                    logger.info(e.getMessage());

                                    e.printStackTrace();

                                }{code}

                        • 10. Re: Custom 500 error page not working with JBoss AS 7
                          xiang yingbing Master

                          Thank you sir! You are completely right!

                           

                          Last night, when I scanned the exception, I had doubted it. But I ignored it because I could see the "http status 500" and thought that jboss had known the exception.