title: Difference between Tomcat and JBoss in context of "Spring Security framework" deployment
body: <p>I have an application that use Spring-Security framework with Jboss Server. Everything works fine. I can get account locked, bad credentials messages based on the authentication.</p>
  
  <p>Now, I'm trying to move to configure the same thing with Tomcat. But, I don't get account locked, bad credentials messages. I just get "Unauthorized" for every wrong authentication. Can some body point me to What I am missing ? Here is the <code>securitycontext.xml</code> file content:</p>
  
  <pre><code>&lt;bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"&gt;
      &lt;property name="authenticationEntryPoint" ref="basicAuthenticationEntryPoint"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="filterInvocationInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor"&gt;
      &lt;property name="authenticationManager" ref="authenticationManager"/&gt;
      &lt;property name="accessDecisionManager"&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"&gt;
      &lt;property name="providers"&gt;
          &lt;list&gt;
              &lt;ref local="jaasAuthenticationProvider"/&gt;
              &lt;ref local="casAuthenticationProvider"/&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>