1 Reply Latest reply on Apr 8, 2010 6:09 PM by Mushraful Hoque

    pages.xml exception handling is not working... Plz need urgent help

    Mushraful Hoque Newbie
      Here is our filter list in web.xml:

              <filter-mapping>
              <filter-name>GTCErrorHandler</filter-name>
              <url-pattern>/GTCProxy/failure/*</url-pattern>
          </filter-mapping>

              <filter-mapping>
                      <filter-name>UrlRewriteFilter</filter-name>
                      <url-pattern>/*</url-pattern>
              </filter-mapping>
          
              <filter-mapping>
                      <filter-name>Servlet Pipeline Filter</filter-name>
                      <url-pattern>/*</url-pattern>
                      <dispatcher>REQUEST</dispatcher>
                      <dispatcher>INCLUDE</dispatcher>
                      <dispatcher>FORWARD</dispatcher>
              </filter-mapping>
                                    

          <filter-mapping>
                 <filter-name>richfaces</filter-name>
                 <url-pattern>/*</url-pattern>
                 <dispatcher>REQUEST</dispatcher>
                 <dispatcher>FORWARD</dispatcher>
                 <dispatcher>INCLUDE</dispatcher>
          </filter-mapping> 
             
          <filter-mapping>
                      <filter-name>Seam Filter</filter-name>
                      <url-pattern>/*</url-pattern>
                      <dispatcher>REQUEST</dispatcher>
                      <dispatcher>FORWARD</dispatcher>
              </filter-mapping>

              <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>*.seam</url-pattern>
              </servlet-mapping>

          <context-param>
                <param-name>facelets.DEVELOPMENT</param-name>
                <param-value>false</param-value>
          </context-param>

      I have switched off the seam debug mode in components.xml

      here is my pages.xml:

          <exception class="org.jboss.seam.security.AuthorizationException">       
              <http-error error-code="404"/>       
          </exception>
          <exception class="org.jboss.seam.security.NotLoggedInException">
              <http-error error-code="404"/>       
          </exception>
          <exception class="org.jboss.seam.InstantiationException">       
              <http-error error-code="404"/>       
          </exception>   
          <exception class="java.lang.NullPointerException">       
              <http-error error-code="404"/>       
          </exception>   
          <exception class="java.lang.Exception">     
              <http-error error-code="404"/>       
         </exception>

      I have generated AuthorizationException and NullPointerException, I can see the error on my stack trace but unfortunately pages.xml is not capturing those.

      I am sure I have missed something. Please suggest me what should i do now ?