Я пытаюсь перейти на Spring 4.0.1 с Spring 3.2.8 / Spring Security 3.2.4. После входа в систему он перенаправляет меня обратно на страницу входа без ошибок в файле журнала.
Вот моя конфигурация Spring Security 3:
<beans:bean id="daoAuthenticationProvider"
class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
<beans:property name="userDetailsService" ref="userDetailsService" />
</beans:bean>
<beans:bean id="authenticationManager"
class="org.springframework.security.authentication.ProviderManager">
<beans:property name="providers">
<beans:list>
<beans:ref local="daoAuthenticationProvider" />
</beans:list>
</beans:property>
</beans:bean>
<authentication-manager>
<authentication-provider user-service-ref="userDetailsService">
</authentication-provider>
</authentication-manager>
Конфигурация Spring Security 4:
<beans:bean id="daoAuthenticationProvider"
class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
<beans:property name="userDetailsService" ref="userDetailsService" />
</beans:bean>
<beans:bean id="authenticationManager"
class="org.springframework.security.authentication.ProviderManager">
<beans:constructor-arg>
<beans:list>
<beans:bean class= "org.springframework.security.authentication.dao.DaoAuthenticationProvider">
<beans:property name="userDetailsService" ref="userDetailsService"/>
</beans:bean>
</beans:list>
</beans:constructor-arg>
</beans:bean>
Форма входа:
<form class="form-signin" action='<spring:url value="/j_spring_security_check" />' method="POST">
<h3 class="form-signin-heading">Please sign in</h3>
<input type="text" class="input-block-level loginTextInput" placeholder="Username" name="j_username" id="j_username" autofocus="autofocus" >
<input type="password" class="input-block-level loginTextInput" placeholder="Password" name="j_password" id="j_password">
<button class="onWhite" type="submit">Sign in</button>
<div> </div>
<c:if test="${param.login_error == '1'}">
<div class="alert alert-error">
<strong>Error:</strong> Invalid username/password combination.
</div>
</c:if>
<c:if test="${param.logout == '2'}">
<div class="alert">
You have been logged out.
</div>
</c:if>
Что я делаю не так?