title: spring exception handler to not handle certain types of exception
body: <p>ive set up a simple exception handler in my spring 2.5 app. Currently it catches all <code>Exception</code>s and shows a stacktrace page.</p>
  
  <p>this is well and good, but now spring security does not properly kick the non-logged in user to the login page, instead my exception page is shown with the spring security exception:</p>
  
  <pre><code>org.springframework.security.AccessDeniedException
  </code></pre>
  
  <p>The problem is that this application doesnt have its own Exception subclass that it uses for all its Exceptions, so i must map <code>Exception</code> but unmap <code>AccessDeniedException</code></p>
  
  <p>is this possible in spring 2.5?</p>
  
  <p><strong>edit</strong>: with spring security 2.0.1</p>
  
  <p>my bean looks like this</p>
  
  <pre><code>&lt;bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"&gt;
      &lt;property name="exceptionMappings"&gt;
          &lt;props&gt;
              &lt;prop key="java.lang.RuntimeException"&gt;common/error&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;**
  </code></pre>