簡體   English   中英

Tomcat遇到了無限循環

[英]Tomcat ran into an infinite loop

我正在使用Apache Struts2和Hibernate開發一個應用程序。 我正在使用Apache Tomcat應用程序服務器。 突然我注意到我的服務器正在不斷打印這些行

WARNING: No configuration found for the specified action: 'addProject' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
Apr 12, 2016 2:30:23 PM org.apache.struts2.components.ServletUrlRenderer warn
WARNING: No configuration found for the specified action: 'addProject' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
Apr 12, 2016 2:30:23 PM org.apache.struts2.components.ServletUrlRenderer warn
WARNING: No configuration found for the specified action: 'studentMailbox' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
Apr 12, 2016 2:30:23 PM org.apache.struts2.components.ServletUrlRenderer warn
WARNING: No configuration found for the specified action: 'studentMailbox' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
Apr 12, 2016 2:30:23 PM org.apache.struts2.components.ServletUrlRenderer warn
WARNING: No configuration found for the specified action: 'addProject' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
Apr 12, 2016 2:30:24 PM org.apache.struts2.components.ServletUrlRenderer warn

在此間隔期間,我的網頁運行時有一些掛起應用程序的跡象。但是2分鍾后我注意到tomcat停止並顯示瀏覽器

AW,Snap
Something went wrong while displaying this page

請建議我一個解決方案。 提前致謝。

生成此異常背后可能有任何原因。 其中讓我們首先集中精力關注可能導致此異常的2點。

首先檢查struts.xml文件是否位於項目中的適當位置。 因為如果Struts2無法加載struts.xml文件,則可能會發生此異常。

第二,如果你已經使用過,請不要在struts.xml文件中使用namespace屬性。

請參閱以下鏈接以更好地理解命名空間: http//struts.apache.org/docs/namespace-configuration.html

暫無
暫無

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

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