簡體   English   中英

ERR_TOO_MANY_REDIRECTS錯誤u

[英]ERR_TOO_MANY_REDIRECTS error u

事實:

我在瀏覽器http://localhost:8080/myapp上請求根應用程序,並且瀏覽器拋出此錯誤: Error 310 (net::ERR_TOO_MANY_REDIRECTS): many redirects

環境:

我正在使用Java 6,Glassfish 2.1,Struts2,Spring和Hibernate。

校驗:

然后,我進入web.xml並在歡迎列表文件中看到以下內容:

<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

因此,讓我們檢查index.jsp並進行以下重定向:

...
<head>
<meta http-equiv="refresh" content="0;url=<%=request.getContextPath()%>/portal/home.do">
...
<link rel="shortcut icon" href="<%=request.getContextPath()%>/img/icono.png" />
</head>
...

然后,我們可以轉到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>
...

讓我們檢查beginAction類:

...
public String home(){
    return SUCCESS;
}
...

我們可以檢查一下tiles.xml

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

最后,我們可以查看僅包含以下內容的整個welcome.jsp文件:

<%@ taglib prefix="s" uri="/struts-tags"%>
<br />

就這樣!

您對這個問題有想法嗎?

顯而易見,您的應用似乎陷入了重定向循環。 查看您的配置,我不知道可能是什么問題。 我會嘗試打開像Fiddler這樣的網絡監視器,或者打開Chrome開發人員工具中的“網絡”標簽,然后查看響應標題,以查看它試圖將您重定向到的位置...這可能有助於揭示問題所在。

在調用/ _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中重新啟用IIS中的Sharepoint應用程序的“匿名”身份驗證解決了該問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM