0 Replies Latest reply on Sep 23, 2009 2:32 PM by Dolphin Here

    Problem with exceptions.xml

    Dolphin Here Newbie
      exceptions.xml contents is as below....

      <exceptions>

          <exception class="javax.persistence.EntityNotFoundException">

               <http-error error-code="404"/>

           </exception>

           <exception class="javax.persistence.PersistenceException">

               <render>Server Error. Kindly Contact Administrator</render>

           </exception>

           <exception class="java.lang.NullPointerException">

               <redirect view-id="/error.xhtml">
                     
                      <message>No Data Found. Kindly Contact Administrator</message>
       
               </redirect>

           </exception>

           <!--
           security redirect stuff  <end-conversation before-redirect="true"/>
           -->

           <exception class="org.jboss.seam.security.NotLoggedInException">

               <redirect view-id="/home.xhtml">
                
                <message>Kindly Login</message>

               </redirect>
              
           </exception>

       
           <exception class="org.jboss.seam.security.AuthorizationException">
       
               <redirect view-id="/home.xhtml">

                   <message>You must Log in to perform this action</message>

               </redirect>

           </exception>

       
           <!--Catch all Exception-->

           <exception class="java.lang.IllegalStateException">

               <redirect view-id="/error.xhtml">

                   <message>Network Busy.</message>

               </redirect>

           </exception>


           <exception class="java.lang.Exception">

               <redirect view-id="/error.xhtml">
       
                         <message>Unexpected failure</message>
                  
               </redirect>

           </exception>

           <exception>

                 <redirect view-id="/unexpected.xhtml">
                  
                       <message>Unexpected failure</message>
                       
                  </redirect>
              
          </exception>


      </exceptions>


      when the desired page is redirected from exceptions.xml, im not able to continue working with the application. is that the way this works? it happens to create a probelm with my jboss server throwing "arjuna.ats.coordinator.basic action" error, resulting to use the application only after a server restart.....

      can somebody explain me how to continue working with application even after some exceptions ...

      Thanks in Advance