title: UserDetailsService Not Getting Called
body: <p>I have this Spring XML:</p>
  
  <pre><code>    &lt;!-- Configure the authentication  --&gt;
      &lt;security:http auto-config="true" use-expressions="true"&gt;
          &lt;security:form-login login-page="/login"
                               authentication-failure-url="/login?error=true"
                               default-target-url="/index" /&gt;
  
          &lt;security:logout invalidate-session="true"
                           logout-success-url="/login"
                           logout-url="/logout" /&gt;
      &lt;/security:http&gt;
  
      &lt;security:authentication-manager&gt;
          &lt;security:authentication-provider user-service-ref="testUDS" /&gt;
      &lt;/security:authentication-manager&gt;
  
      &lt;bean id="testUDS" class="net.safecycle.services.security.TestUserDetailService" /&gt;
  </code></pre>
  
  <p>My UserDetailsService implementation looks like this:</p>
  
  <pre><code>public class TestUserDetailService implements UserDetailsService {
      public UserDetails loadUserByUsername 
      (
          String username
      ) throws UsernameNotFoundException {
          System.out.println ("loadUserByUsername (" + username + ")");
  
          Collection&lt;GrantedAuthority&gt; authorities;
          authorities = new LinkedList&lt;GrantedAuthority&gt; ();
          authorities.add (new GrantedAuthorityImpl ("Admin"));
  
          UserDetails ud = new User (username, 
                                     "ca", 
                                     true, 
                                     true, 
                                     true, 
                                     true, 
                                     authorities);
          return ud;
      }
  }
  </code></pre>
  
  <p>When I log in with any username and the password 'ca', I should see the print statement at the top of my <code>loadUserByUsername</code>, but I do not. What is most perplexing is that I have used this code in another project with no problem. Is there anything I am missing, a copy mistake I'm hoping?</p>