本文介绍了Spring Security在Glassfish v3上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java Web应用程序,它使用Spring Security来登录用户,限制访问等.它在Glassfish 2.1,Tomcat,Jetty上运行时没有问题,但是当我尝试在Glassfish v3上运行时,它不起作用登录,然后按登录按钮,我从glassfish服务器获得登录框(服务器xxxx需要用户名和密码"框).

I have a java web application that use spring security for log in users, restriction access etc. , and it is working without problems on Glassfish 2.1, Tomcat, jetty, but on glassfish v3 doesn't work, when I try to login, and press button login, I'm getting login box from glassfish server(the box "The server xxxx requires user name and password").

有人遇到这样的问题吗?请让我知道我该如何解决.

Has somebody got such issue? Please let me know how I can solve this.

谢谢,尤里(Iurie)

Thanks,Iurie

推荐答案

尝试评论以下片段:

<login-config>
  <auth-method>BASIC</auth-method>
</login-config>

在".../glassfish/domains/domain1/config/ default-web.xml "文件中

in ".../glassfish/domains/domain1/config/default-web.xml" file

这篇关于Spring Security在Glassfish v3上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 18:46