Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/371.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Google应用程序引擎Spring安全登录失败问题_Java_Google App Engine_Spring Security - Fatal编程技术网

Java Google应用程序引擎Spring安全登录失败问题

Java Google应用程序引擎Spring安全登录失败问题,java,google-app-engine,spring-security,Java,Google App Engine,Spring Security,我正在谷歌应用程序引擎中使用Spring安全模块 如果我成功登录(使用正确的凭据),那么它将成功重定向到主页 如果登录失败一次,但凭据不正确,则即使使用正确的凭据,第二次尝试也不会将我重定向到主页,它将保留在错误登录页面中 Security-Context.xml的一部分 <http auto-config='true'> <intercept-url pattern="/css/**" filters="none"/> <intercept-url

我正在谷歌应用程序引擎中使用Spring安全模块

如果我成功登录(使用正确的凭据),那么它将成功重定向到主页

如果登录失败一次,但凭据不正确,则即使使用正确的凭据,第二次尝试也不会将我重定向到主页,它将保留在错误登录页面中

Security-Context.xml的一部分

<http auto-config='true'>
    <intercept-url pattern="/css/**" filters="none"/>
    <intercept-url pattern="/images/**" filters="none"/>
    <intercept-url pattern="/login.jsp*" filters="none"/>
    <intercept-url pattern="/**" access="ROLE_USER" />
    <form-login login-page='/login.jsp' authentication-failure-url="/login.jsp?login_error=1"  default-target-url="/"/>
    <session-management invalid-session-url="/login.jsp" />
    <logout logout-success-url="/login.jsp"/>
</http>

<authentication-manager>
    <authentication-provider>
      <user-service>
        <user name="guest1" password="guest1" authorities="ROLE_USER" />
        <user name="guest2" password="guest2" authorities="ROLE_USER" />
      </user-service>
    </authentication-provider>
</authentication-manager>

访问的两个凭据是guest1、guest1和guest2、guest

谢谢,
Ramesh.V

这个问题是由于spring版本3.0.6.RELEASE造成的,我改为3.0.5.RELEASE解决了我的问题


谢谢

您可以启用调试日志记录并查看Spring的说法吗?