title: HandlerExceptionResolver not invoking in clustered environment
body: <p>I have written one class that implements <code>HandlerExceptionResolver</code> of spring to handle the <code>MaxUploadSizeExceededException</code> expception because we allow at max 25MB size for upload. I have registered this class in the servletcontext as follows:</p>
  
  <pre><code>&lt;bean id="uploadingFileSizeExceeds" 
    class="com.puresafety.health.ui.web.demographics.controllers.FileSizeExceedsMaxLimitHandler" &gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Class <strong>FileSizeExceedsMaxLimitHandler</strong></p>
  
  <pre><code>public class FileSizeExceedsMaxLimitHandler implements HandlerExceptionResolver {
      private final static Log logger = LogFactory
              .getLog(FileSizeExceedsMaxLimitHandler.class);
  
      public ModelAndView resolveException(HttpServletRequest request,
              HttpServletResponse response, Object handler, Exception ex) {
          logger.debug("FileSizeExceedsMaxLimitHandler.resolveException: Control is coming here because uploading file size is exceeding max allowed limit.");
          if (ex instanceof MaxUploadSizeExceededException
                  &amp;&amp; request.getPathInfo().equals(
                          "/demographicsPhoto/uploadimagefile")) {
              logger.debug("FileSizeExceedsMaxLimitHandler.resolveException: MaxUploadSizeExceededException occurred");
              request.setAttribute("ALERTMESSAGE",
                      "The image size is exceeding the allowed limit.");
              ImageUploadForm imageUploadForm = new ImageUploadForm();
              Map&lt;String, Object&gt; model = new HashMap&lt;String, Object&gt;();
              model.put("imageUploadForm", imageUploadForm);
              return new ModelAndView("demographics/uploadEmployeeImage", model);
          }
          return new ModelAndView("base/error/error404");
      }
  }
  </code></pre>
  
  <p>It's catching the exception successfully in my local but not working in our Clustered QA environment i.e. control is not going to the method resolveException in this class.</p>
  
  <p>What I am missing here.
  Thanks in Advance!  </p>