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

Struts 1 Java Discussion :

JasperException: Le fichier "/WEB-INF/struts-html.tld" n'a pas été trouvé


Sujet :

Struts 1 Java

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut JasperException: Le fichier "/WEB-INF/struts-html.tld" n'a pas été trouvé
    Bonjour,

    J'ai crée une petite application struts mais je ne comprends pas pourquoi j'ai cette erreur.

    org.apache.jasper.JasperException: Le fichier "/WEB-INF/struts-html.tld" n'a pas été trouvé
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:160)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
    org.apache.jasper.compiler.Parser.parse(Parser.java:133)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    J'ai bel bien mes tld dans WebRoot/WEB-INF et dans chaque jsp, j'y fais reference comme suit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    voici mon fichier web.xml :
    Code xml : 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
    <?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>
     	<display-name>bookphone</display-name>
     
     
     	<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>
    		<load-on-startup>0</load-on-startup>
    	</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>
     
     
     
    	<taglib>
    		<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    		<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    		<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    		<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    	</taglib>
    	<taglib>
    		<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    		<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    	</taglib>
     
    </web-app>
    Merci de votre aide

  2. #2
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    C'est normal que ça ne fonctionne pas.
    Dans le web.xml, tu as déclaré les 4 tlds struts-logic.tld, struts-bean.tld, struts-html.tld et struts-tiles.tld sous la même uri.
    Il faut faire attention au copier/coller.

    Pour plus d'infos sur la déclaration des tlds dans le web.xml, voir la FAQ.

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut Par défaut JasperException: Le fichier "/WEB-INF/struts-html.tld" n'a pas été trouv
    Bonjour,

    Je sais pas mais j'ai toujours la même erreur.

    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
     
    org.apache.jasper.JasperException: Le fichier "/tags/struts-html" n'a pas été trouvé
    	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:160)
    	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
    	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
    	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
    	org.apache.jasper.compiler.Parser.parse(Parser.java:133)
    	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
    	org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
    	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    mon index ;

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    <%@ taglib uri="/tags/struts-html" prefix="html"%>
    <%@ taglib uri="/tags/struts-bean" prefix="bean"%>
    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
     
    <?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>
     	<display-name>bookphone</display-name>
     
     
     	<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>
    		<load-on-startup>0</load-on-startup>
    	</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>
     
     
    	<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-tiles</taglib-uri>
    			<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    		</taglib>
    		<taglib>
    			<taglib-uri>/tags/struts-logic</taglib-uri>
    			<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    		</taglib>
     
     
    </web-app>
    Ce que j'ai fait, j'ai crée une application web avec myeclipse.

    Dedans il est inclue mo JRE 1.5.0_05 et le J2EE 1.4 librairies.

    J'ai importé tous les lib struts (WebRoot/WEB-INF/lib) et tous les tags lib (WebRoot/WEB-INF) J'utilise TOMCAT pour lancer mes applications

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut /WEB-INF/web.xml introuvable EDI eclipse
    au fait je viens de remarquer que j'ai cette erreur parce que tomcat ne trouve pas le fichier web.xml

    voici ce que j'ai dans ma console
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    ATTENTION: Erreur interne: Fichier /WEB-INF/web.xml introuvable
    16-déc.-2007 11:29:18 org.apache.catalina.core.StandardWrapperValve invoke
    Pour le moment je n'arrive pas à résoudre le problème mais j'avance

  5. #5
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    C'est bizarre qu'il ne trouve pas ton web.xml si celui-ci est bien sous WEB-INF.

    Peux-tu montrer l'arborescence de ton projet ?

    Sinon, peux-tu préciser la version de Struts et de Tomcat que tu utilises ?

  6. #6
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    si tu utilises une version de Tomcat qui supporte J2EE 1.4, je te conseille de passer en J2EE 1.4 en modifiant le début de ton web.xml.

    Remplace la balise DOCTYPE :
    Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    par ceci :
    Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    <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">
    Supprime les tld de WEB-INF, enlève les balises taglib du web.xml et remplace les directives taglib de la jsp par celles-ci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

  7. #7
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut Par défaut /WEB-INF/web.xml introuvable EDI eclipse
    Bonjour c_nvy

    voici mon arbo:

    je vais essayer la suite de ton commentaire..
    Images attachées Images attachées  

  8. #8
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    En Struts 1.3.8, les directives taglib doivent plutôt être codées comme ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    Quelle est ta version de Tomcat ?

    Peux-tu aussi montrer quels jars tu as sous J2EE 1.4 Libraries ?

  9. #9
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut ATTENTION: Erreur interne: Fichier /WEB-INF/web.xml introuvable
    hello,

    J'ai toujours ceci dans ma console :

    INFO: Server startup in 20610 ms
    16-déc.-2007 13:52:03 org.apache.jasper.compiler.TldLocationsCache processWebDotXml
    ATTENTION: Erreur interne: Fichier /WEB-INF/web.xml introuvable
    16-déc.-2007 13:52:03 org.apache.catalina.core.StandardWrapperValve invoke
    GRAVE: "Servlet.service()" pour la servlet jsp a généré une exception
    org.apache.jasper.JasperException: L'uri absolue: http://jakarta.apache.org/struts/tags-html ne peut être résolu dans le fichier web.xml ou dans les fichiers jar déployés avec cette application
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
    at java.lang.Thread.run(Thread.java:595)

  10. #10
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Oui, c'est normal. Les uri que je t'avais donné la première fois ne sont pas bonnes pour la 1.3.8.
    Il faut que tu les modifies comme je te l'ai indiqué dans mon message précédent.

  11. #11
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut Erreur interne: Fichier /WEB-INF/web.xml introuvable
    Bonjour,

    J'ai toujours la même erreur :

    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
     
    ATTENTION: Erreur interne: Fichier /WEB-INF/web.xml introuvable
    16-déc.-2007 18:54:00 org.apache.catalina.core.StandardWrapperValve invoke
    GRAVE: "Servlet.service()" pour la servlet jsp a généré une exception
    org.apache.jasper.JasperException: L'uri absolue: http://struts.apache.org/tags-bean ne peut être résolu dans le fichier web.xml ou dans les fichiers jar déployés avec cette application
    	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    	at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
    	at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
    	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
    	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
    	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
    	at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
    	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
    	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
    	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
    	at java.lang.Thread.run(Thread.java:595)
    J'utilise Tomcat 6.0
    et les jar que j'ai au niveau de J2ee, sont sur l'image :
    Images attachées Images attachées  

  12. #12
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    As-tu bien enlevé les balises taglib du web.xml ?

  13. #13
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Peux-tu faire un test en enlevant les jars de JBOSS ?

  14. #14
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut webapp probleme help
    j'ai enlevé les 4 jars jboss mais j'ai des errors dans l'ongle problem

    genre :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    Severity and Description	Path	Resource	Location	Creation Time	Id
    Project bookphone is missing required library: 'C:\Program Files\MyEclipse 5.5.1 GA\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.1\data\libraryset\1.4\jboss-j2ee.jar'		bookphone	Build path	1197830665453	6085

  15. #15
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut problrm help help
    et je ne sais pas les enlever dans mon java build path, pas la main dessous c'est grisé.

    J'ai effectivement enlevé les taglib de mon web.xml

  16. #16
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Laisse tomber pour les jars de Jboss. Je pensais simplement qu'il n'était pas utile d'avoir les jars de JBoss étant donné que tu utilises Tomcat.

    Peux-tu montrer le web.xml modifié ?

  17. #17
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut mon web.xml
    le web.xml :
    Code xml : 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
    <?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"
    		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>bookphone</display-name>
     
     
     	<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>
    		<load-on-startup>1</load-on-startup>
    	</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>

  18. #18
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Ton web.xml est correct.

    Au cas où, pourrais-tu aussi montrer le struts-config.xml ?

  19. #19
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2006
    Messages : 241
    Par défaut mon struts conf
    struts-config.xml :

    Code xml : 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
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config 
    	PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" 
    	"http://struts.apache.org/dtds/struts-config_1_3.dtd">
     
    <struts-config>
    	<form-beans>
    		<form-bean name="symboleForm" type="form.SymboleForm" />
    	</form-beans>
     
    	<action-mappings>
     
    		<action path="/result" 
    				name="symboleForm" 
    				input="index.jsp" 
    				type="action.SymboleAction" 
    				scope="session">
    			<forward name="page" path="index.jsp" redirect="true"/>
    			<forward name="next" path="result.jsp" redirect="true" />
    		</action>
    	</action-mappings>
    </struts-config>

  20. #20
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Ben là, désolée mais je suis à court d'idées.

    Comment déploies-tu ton appli ? tu fais un war ?

Discussions similaires

  1. Accéder aux fichiers sous WEB-INF
    Par j2ee60 dans le forum Général Java
    Réponses: 4
    Dernier message: 24/06/2011, 20h10
  2. struts-html.tld, attribut form->type manquant
    Par befou dans le forum Struts 1
    Réponses: 2
    Dernier message: 24/01/2011, 22h26
  3. Où trouver le fichier struts-html.tld ?
    Par Chavadam dans le forum Struts 1
    Réponses: 7
    Dernier message: 03/01/2009, 13h21
  4. probleme avec struts-html.tld
    Par kouts dans le forum Struts 1
    Réponses: 3
    Dernier message: 09/08/2006, 13h32
  5. [Struts] Lire un fichier properties situé ds WEB-INF
    Par tscoops dans le forum Struts 1
    Réponses: 3
    Dernier message: 02/02/2005, 14h33

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