Http 错误\u太多\u重定向错误u

Http 错误\u太多\u重定向错误u,http,struts2,glassfish,redirect,Http,Struts2,Glassfish,Redirect,事实: 我正在我的浏览器上请求根应用程序http://localhost:8080/myapp而我的浏览器抛出此错误:错误310(net::ERR\u TOO\u MANY\u重定向):MANY REDIRECTS 环境: 我正在使用Java6、GlassFish2.1、Struts2、Spring和Hibernate 检查: 然后我查看web.xml,在欢迎列表文件中,我有以下内容: <welcome-file-list> <welcome-file>index

事实:

我正在我的浏览器上请求根应用程序
http://localhost:8080/myapp
而我的浏览器抛出此错误:
错误310(net::ERR\u TOO\u MANY\u重定向):MANY REDIRECTS

环境:

我正在使用Java6、GlassFish2.1、Struts2、Spring和Hibernate

检查:

然后我查看web.xml,在欢迎列表文件中,我有以下内容:

<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>
然后我们可以转到
struts.xml
,我们可以看到以下内容:

...
<package name="portal-action" extends="portal-base" namespace="/portal">
    <action name="home" method="home" class="beginAction">
        <result type="tiles">begin.home</result>
    </action>
...
我们可以检查
tiles.xml

...
<definition name="begin.welcome" extends=".baseHome">
    <put-attribute name="working.region" value="/jsp/common/welcome.jsp" />
</definition>
...
就这些


你对这个问题有什么想法吗?

简单地说,你的应用程序似乎陷入了重定向循环。看看你的配置,我不知道会是什么问题。我会尝试打开一个网络监视器,比如Chrome开发工具中的“网络”选项卡,查看响应标题,看看它试图将您重定向到哪里。。。这可能有助于揭示这里的问题所在。

在调用/\u API/web/lists/…时,我在SharePoint 2013 REST API中遇到过这种情况

它没有返回任何行,只是显示了此错误

在错误WFE错误日志中,出现了一些错误,详细信息如下

System.ServiceModel 4.0.0.0
3
WebHost
Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/cellstorage.https.svc' cannot be activated due to an exception during compilation.  The exception message is: Security settings for this service 
require  'Anonymous' Authentication but it is not enabled** for the IIS application that hosts this service.. 
这是在错误中说的,我记得昨晚出于某种原因,我们通过IIS在SharePoint 8中禁用了“匿名”身份验证


重新在端口80上的IIS for Sharepoint应用程序中启用“匿名”身份验证修复了该问题

非常感谢。我正在测试这些工具。任何结果我都会贴在这里。
...
<definition name="begin.welcome" extends=".baseHome">
    <put-attribute name="working.region" value="/jsp/common/welcome.jsp" />
</definition>
...
<%@ taglib prefix="s" uri="/struts-tags"%>
<br />
System.ServiceModel 4.0.0.0
3
WebHost
Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/cellstorage.https.svc' cannot be activated due to an exception during compilation.  The exception message is: Security settings for this service 
require  'Anonymous' Authentication but it is not enabled** for the IIS application that hosts this service..