IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Tomcat et TomEE Java Discussion :

[TOMCAT] Attribut taglib de web.xml


Sujet :

Tomcat et TomEE Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    75
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 75
    Points : 53
    Points
    53
    Par défaut [TOMCAT] Attribut taglib de web.xml
    Bonjour a tous,

    Je developpe ma webapp J2EE en utilisant myEclipse et j'ai un message d'erreur retourné par myeclipse dans mon web.xml au niveau des attributs <taglib> :


    Voici 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
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
     
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    	<display-name>GEOTRACKER</display-name>
    	<listener>
    		<listener-class>com.bla.UnContextListener</listener-class>
    	</listener>
     
    <!-- Utilisation de JNDI : 	-->
    <context-param>
    	<param-name>javax.servlet.jsp.jstl.sql.dataSource</param-name>
    	<param-value>jdbc/GeoTracker</param-value>
    </context-param>
     
    	<!-- Db connection Pool -->
    	<resource-ref>
    		<description>Main Connection pool</description>
    		<res-ref-name>jdbc/GeoTracker</res-ref-name>
    		<res-type>javax.sql.DataSource</res-type>
    		<res-auth>Container</res-auth>
    		<res-sharing-scope>Shareable</res-sharing-scope>
    	</resource-ref>
     
    	<!-- The Servlet used to route logins -->
    	<servlet>
    		<servlet-name>LoginRouter</servlet-name>
    		<servlet-class>com.bla.LoginRouter</servlet-class>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>LoginRouter</servlet-name>
    		<url-pattern>/LoginRouter</url-pattern>
    	</servlet-mapping>
     
     
    	<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>
    		<init-param>
    			<param-name>debug</param-name>
    			<param-value>2</param-value>
    		</init-param>
    		<init-param>
    			<param-name>detail</param-name>
    			<param-value>2</param-value>
    		</init-param>
    		<load-on-startup>2</load-on-startup>
    	</servlet>
     
     
    	<servlet-mapping>
    		<servlet-name>action</servlet-name>
    		<url-pattern>*.do</url-pattern>
    	</servlet-mapping>
     
    	<!-- The Usual Welcome File List -->
    	<welcome-file-list>
    		<welcome-file>index.jsp</welcome-file>
    	</welcome-file-list>
     
     
    	<!-- Taglibs  L'ERREUR APPARAIT ICI-->
    	<taglib>
    		<taglib-uri>/tags/c</taglib-uri>
    		<taglib-location>/WEB-INF/c.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/tags/struts-bean</taglib-uri>
    		<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/tags/struts-html</taglib-uri>
    		<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/tags/struts-logic</taglib-uri>
    		<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/tags/struts-nested</taglib-uri>
    		<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/tags/struts-tiles</taglib-uri>
    		<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/tags/sql</taglib-uri>
    		<taglib-location>/WEB-INF/sql.tld</taglib-location>
    	</taglib>
     
    </web-app>

    Mon IDE me dit que :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":session-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://java.sun.com/xml/ns/j2ee":welcome-file-list, "http://java.sun.com/xml/ns/j2ee":error-page, "http://java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://java.sun.com/xml/ns/j2ee":security-role, "http://java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":message-destination, "http://java.sun.com/xml/ns/j2ee":locale-encoding-mapping-list}' is expected.
    Aparemment le tag <taglib> n'est pas reconnu ???
    Ou suis-je sensé le mettre si ce n'est pas dans mon web.xml?

    A part ca l'application fonctionne tres bien sur Tomcat 5.5 et les taglibs aussi donc je pense qu'il ne sagit que d'une petite erreur de validation de l'IDE

    Si qqn a une idée pour que je puisse faire disparaitre cette petite croix rouge de mon projet elle serait la bien venue ^^

    MErci pour votre aide

  2. #2
    Membre éprouvé

    Homme Profil pro
    Inscrit en
    Mars 2003
    Messages
    291
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Mars 2003
    Messages : 291
    Points : 1 059
    Points
    1 059
    Par défaut
    Dans les specs des conteneurs 2.4, les tags taglib se mettent entre deux balises jsp-config

Discussions similaires

  1. [TOMCAT] parametrage du fichier web.xml
    Par sebos63 dans le forum Tomcat et TomEE
    Réponses: 12
    Dernier message: 06/05/2010, 12h09
  2. Probleme avec balise taglib dans web.xml
    Par slimak dans le forum JSF
    Réponses: 1
    Dernier message: 04/06/2009, 15h44
  3. Réponses: 14
    Dernier message: 08/08/2007, 18h36
  4. Plugin Tomcat d'Eclipse et web.xml
    Par MLK jr dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 13/03/2006, 09h20
  5. [TomCat][sécurité]config fichier web.xml
    Par liomac dans le forum Tomcat et TomEE
    Réponses: 6
    Dernier message: 24/09/2003, 15h46

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo