title: spring security can't login
body: <p>This is snippet from my spring security configuration:</p>
  
  <pre><code>&lt;security:http use-expressions="true"&gt;
      &lt;security:intercept-url pattern="/*" access="permitAll"/&gt;
      &lt;security:intercept-url pattern="/admin*" access="hasRole('ROLE_ADMIN')" /&gt;
      &lt;security:form-login login-page="/zaloguj" default-target-url="/"
                           authentication-success-handler-ref="loginSuccessHandler"
                           authentication-failure-url="/zaloguj?error"
                           login-processing-url="/login"
  
              /&gt;
      &lt;security:logout logout-url="/wyloguj"
                       invalidate-session="true"
                       logout-success-url="/"
              /&gt;
  &lt;/security:http&gt;
  
  
  &lt;security:authentication-manager&gt;
      &lt;security:authentication-provider&gt;
          &lt;security:user-service&gt;
              &lt;security:user name="admin" authorities="ROLE_ADMIN" password="admin"/&gt;
          &lt;/security:user-service&gt;
      &lt;/security:authentication-provider&gt;
  &lt;/security:authentication-manager&gt;
  </code></pre>
  
  <p>When I type in login form admin admin I am redirected to authentication-failure-url. What am I doing wrong? I am using Spring Security version 3.2.0.RELEASE. Thanks in advance for any help. Best Regards</p>