Bonjour,
J'essaie de lancer mon projet struts2 . (C'est un projet tuto)
Voici le readme.txt :
Donc j'ai déployé avec maven sous éclipse et j'ai copié le war dans le webapps.This is the example project referred to in the
Struts 2 documentation, Struts 2 Interceptors tutorial.
See: http://struts.apache.org.
To build the application's war file run mvn clean package
from the project's root folder.
The war file is created in the target sub-folder.
Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and
then startup the Servlet container.
In a web browser go to: http://localhost:8080/interceptors/index.action.
You should see a web page with Welcome to Struts 2!
Puis ensuite je fais :
http://localhost:8081/interceptors/index.action
Et là mon erreur est :
J'ai également essayé de modifier mon fichier tomcat-user.xml en décommentant les roles par défaut:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Etat HTTP 404 - /interceptors/index.action type Rapport d''état message /interceptors/index.action description La ressource demandée n''est pas disponible. Apache Tomcat/7.0.47
Et pour finir , ce que je ne comprends pas c'est pourquoi j'ai mes fichiers xml de configuration de Tomcat en double?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users>
Donc ma question c'est bien sur: comment acceder à ce projet et visualiser lla page d'accueil?
Partager