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

Servlets/JSP Java Discussion :

problème d'affichage d'une page JSP


Sujet :

Servlets/JSP Java

  1. #1
    Membre confirmé Avatar de ferrero
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    75
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 75
    Par défaut problème d'affichage d'une page JSP
    Bonjour,

    quand je veux accéder a une page JSP, je vois afficher cette erreur

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    avax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    la page jsp est :
    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
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
    <html:html>
     
     
    		<h2>Personne - Formulaire</h2><hr>
    		<html:form action="/register">
    			<table>
    				<tr>
    					<td>Nom</td>
    					<td><html:text property="nom" size="20" /></td>
    				</tr>
    				<tr>
    					<td>Age</td>
    					<td><html:text property="prenom" size="20"/></td>
    				</tr>
    			</table>
    			<table>
    				<tr>
    					<td><html:submit value="Envoyer" /></td>
    					<td><html:reset value="Retablir" /></td>
     
    				</tr>
    			</table>
    		</html:form>
     
    </html:html>
    est ce que quelqu'un peut m'aider à trouver la solution?


    merci d'avance

  2. #2
    Membre Expert Avatar de willoi
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    1 355
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Décembre 2006
    Messages : 1 355
    Par défaut
    Montre la trace complète de l'erreur.

  3. #3
    Membre confirmé Avatar de ferrero
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    75
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 75
    Par défaut
    la voici :
    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
    2007-05-16 11:37:50 StandardWrapperValve[jsp]: "Servlet.service()" pour la servlet jsp a généré une exception
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    	at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)
    	at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
    	at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
    	at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:179)
    	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
    	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
    	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
    	at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
    	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
    	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
    	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    	at java.lang.Thread.run(Thread.java:595)

  4. #4
    Membre Expert Avatar de willoi
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    1 355
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Décembre 2006
    Messages : 1 355
    Par défaut
    Citation Envoyé par ferrero
    quand je veux accéder a une page JSP, je vois afficher cette erreur
    Comment essayes-tu d'y acceder ?

  5. #5
    Membre confirmé Avatar de ferrero
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    75
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 75

  6. #6
    Membre Expert Avatar de willoi
    Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    1 355
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Décembre 2006
    Messages : 1 355
    Par défaut
    Apparement tu utilises Struts.

    Plusieurs remarques :
    1 Il faut importer et mettre les librairies de struts dans son classpath
    2 Tu dois utiliser le fichier struts-config.xml pour executer tes jsp.
    3 regarde la faq Struts, tu trouveras plus d'infos.

    Toutefois si tu ne veux pas utiliser cette librairie n'utilises pas les tags html .

  7. #7
    Membre confirmé Avatar de ferrero
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    75
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 75
    Par défaut
    oui j'utilise struts ...

    je crois que la source du problème c'est l'utilisation des taglib struts car je viens de tester avec une page qui ne contient pas ces taglib et ça marche ...

    je vais me renseigner sur la maniere dont on utilise les taglib struts et je te tiendrai au courant

    merci willoi

  8. #8
    Membre confirmé Avatar de ferrero
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    75
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 75
    Par défaut
    c'était juste un problème de Tomcat, je l'ai juste reinstallé et tout marche bien maintenant ..

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 12/10/2012, 11h43
  2. Problème d'affichage dans une page JSP
    Par lbrnoss dans le forum Servlets/JSP
    Réponses: 3
    Dernier message: 13/02/2011, 14h31
  3. [WEB] affichage d'une page JSP "spécifique" à l'appli
    Par fastlock dans le forum W4 Express
    Réponses: 1
    Dernier message: 18/09/2007, 15h07
  4. Forcer l'affichage d'une page jsp sur un ecran 800*600
    Par menzlitsh dans le forum Struts 1
    Réponses: 2
    Dernier message: 25/10/2006, 10h22
  5. [Débutant] Problème de déconnexion d'une page JSP
    Par amal9 dans le forum Servlets/JSP
    Réponses: 12
    Dernier message: 22/01/2004, 13h40

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