title: Why doesn't my custom login page show with Spring Security 4?
body: <p>I am able to use a custom login page with Spring Security 3.2.4, but after migrating with the code below using 4.0.0, I see a generic login form instead of my custom one:</p>
  
  <pre><code>  &lt;beans:bean id="authSuccessHandler" class="com.company.web.RoleBasedAuthenticationSuccessHandler" /&gt;
  
    &lt;http disable-url-rewriting="false" use-expressions="true"&gt;
      &lt;form-login login-page="/login"
          username-parameter="j_username"
          password-parameter="j_password"
          login-processing-url="/j_spring_security_check"
          authentication-failure-url="/login?login_error=true"
          authentication-success-handler-ref="authSuccessHandler"/&gt;
      &lt;!-- SOME INTERCEPT-URLs (redacted) --&gt;
      &lt;intercept-url pattern="/login" access="permitAll"/&gt;
      &lt;remember-me 
           remember-me-parameter="_spring_security_remember_me"
           remember-me-cookie="SPRING_SECURITY_REMEMBER_ME_COOKIE"/&gt;
      &lt;logout 
           logout-url="/j_spring_security_logout" 
           logout-success-url="/index" /&gt;
    &lt;/http&gt;
  </code></pre>
  
  <p>I also tried enabling debug logging on the various Spring classes.  I set it on my custom authSuccessHandler, but I don't see any output from it.  No luck with searching on SO or Google either.</p>
  
  <p>Is there anything incompatible about this configuration?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I'm also using Apache Tiles as so:</p>
  
  <pre><code>  &lt;definition name="login" extends="scrollableLayout"&gt;
      &lt;put-attribute name="header" value="/WEB-INF/jsp/heading_blue.jsp"/&gt;
      &lt;put-attribute name="body" value="/WEB-INF/jsp/login.jsp"/&gt;
    &lt;/definition&gt;
  </code></pre>
  
  <p>And using the following:</p>
  
  <pre><code>  &lt;mvc:view-controller path="/login" /&gt;  
  </code></pre>