Erreur Fichier /WEB-INF/web.xml introuvable EDI eclipse
bonjour,
je suis débutante dans le développemnt avec eclipse 3.1,tomcat et strutsbox.
j'ai suivi le tutorial de serge tahe ,mais j'ai un problème dans le log de tomcat:
ATTENTION: Erreur interne: Fichier /WEB-INF/web.xml introuvable
voici le fichiet web.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>**.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app> |
j'utilise le fichier struts-config suivant:
Code:
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"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<action-mappings>
<action
path="/main"
parameter="/vues/main.html"
type="org.apache.struts.actions.ForwardAction"
/>
<action
path="/erreurs"
parameter="/vues/erreurs.personne.jsp"
type="org.apache.struts.actions.ForwardAction"
/>
<action
path="/reponse"
parameter="/vues/reponse.personne.jsp"
type="org.apache.struts.actions.ForwardAction"
/>
</action-mappings>
</struts-config> |
quant je déploie l'exemple sous tomcat j'ai une autre erreur
Citation:
org.apache.jasper.JasperException: Le fichier "/WEB-INF/struts-html.tld" n'a pas été trouvé
quand je supprime la ligne suivante de la page jsp
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
ca marche,mais dans ce cas j'utilise plus le model struts
je ne sais pas d'ou vient le probleme
merci d'avance pour toute aide