Declaration du DTD dans le fichier web.xml
Salut
j'ai une ambiguïté à comprendre où tomcat recherche le fichier DTD déclaré dans mon fichier web.xml.
Eb fait j'ai la déclaration suivante:
Code:
1 2 3
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> |
eclipse signale les erreurs suivantes:
Code:
1 2 3 4 5 6 7
|
Multiple annotations found at this line:
- No grammar constraints (DTD or XML schema) detected for the document
- The content of element type "web-app" must match "(icon?,display-
name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-
mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-
config?,security-role*,env-entry*,ejb-ref*)". |
Comment tomcat trouve le fichier DTD utilisé pour valider le fichier web.xml