ERR_TOO_MANY_REDIRECTS d'erreur u

Fait:

Je demande racine de l'application sur mon navigateur http://localhost:8080/myapp et mon navigateur me met cette erreur: Error 310 (net::ERR_TOO_MANY_REDIRECTS): many redirects.

Environnement:

Je suis à l'aide de Java 6, Glassfish 2.1, Struts2, Spring et Hibernate.

Vérifier:

Puis je regarde dans web.xml et bienvenue dans la liste des fichiers, j'ai ceci:

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

Donc, nous allons vérifier index.jsp et il y a cette redirection:

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

Ensuite, nous pourrons aller struts.xml et nous pouvons voir ce morceau:

...
<package name="portal-action" extends="portal-base" namespace="/portal">
    <action name="home" method="home" class="beginAction">
        <result type="tiles">begin.home</result>
    </action>
...

Nous allons vérifier beginAction classe:

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

Et nous pouvons vérifier tiles.xml:

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

Et, enfin, nous pouvons afficher la totalité du welcome.jsp fichier qui contient seulement:

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

C'est tout!

Avez-vous une idée sur ce problème?

OriginalL'auteur Israel | 2011-09-26