Bonjour,

Je débute en Java / Eclipse / Struts et j'ai suivi un tutoriel de base pour commencer par afficher une page index.html.

J'ai donc installé Eclipse Java EE IDE for Web Developers 4.4.2 et Tomcat 7.0.59.
J'ai paramétré Tomcat dans Eclipse, puis démarré Tomcat et sous IE (http://localhost:8080) j'obtiens ma page d'accueil Tomcat.

Sous Eclipse, j'ai créé un Dynamic Web Project et j'y ai collé mes bibliothèques Struts 2.3.20.

Ensuite j'ai créé un index.html sous /webContent qui affiche un simple "bonjour".

Et quand je fais un Run as (Run on server)... Tomcat se lance, j'ai même la page d'accueil Tomcat, mais sous l'URL http://localhost:8080/MyCompta j'ai l'erreur
Etat HTTP 404 - /MyCompta/
type Rapport d''état
message /MyCompta/
description La ressource demandée n''est pas disponible.
Et là, j'ai beau chercher ça m'echappe....

Ci-dessous mon web.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>MyCompta</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <session-config>
    <session-timeout>30</session-timeout>
  </session-config>
</web-app>
Quelqu'un saurait-il m'indiquer comment résoudre ce problème ?

Merci d'avance pour votre aide.