Bonjour,
je suis un tutorial pour afficher une simple page web avec TOMCAT.
Dans un répertoire "vues", j'ai un banal fichier exemple.html
Lorsque j'accède à ce fichier à la main "http://localhost:8080/exemple/vues/exemple.html" ça marche
Ensuite, je crée mon fichier web.xml dans WEB-INF :
Je recharge mon projet exemple mais j'ai toujours l'erreur suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>Application Exemple</display-name> <description>Application web minimale</description> <welcome-file-list> <welcome-file>/vues/exemple.html</welcome-file> </welcome-file-list> </web-app>
Etat HTTP 404 - /exemple/
--------------------------------------------------------------------------------
type Rapport d'état
message /exemple/
description La ressource demandée (/exemple/) n'est pas disponible.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.27
Le serveur est bien démarré.
Voyez-vous une erreur dans mon fichier web.xml ou alors peut-être que j'ai mal configuré TOMCAT ?
Merci de votre aide
Partager