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 :

org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP


Sujet :

Servlets/JSP Java

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2007
    Messages
    22
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 22
    Points : 19
    Points
    19
    Par défaut org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP
    Bonjour,

    dans le déploiement de mon code sur le serveur tomcat + axis, voila ce que j'obtient comme 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
    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
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    Etat HTTP 500 - 
     
    --------------------------------------------------------------------------------
     
    type Rapport d'exception
     
    message 
     
    description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête.
     
    exception 
     
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:3: package javax.servlet does not exist
    import javax.servlet.*;
    ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:4: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:5: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.*;
    ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:7: package org.apache.jasper.runtime does not exist
    public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
                                                                  ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:8: package org.apache.jasper.runtime does not exist
        implements org.apache.jasper.runtime.JspSourceDependent {
                                            ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:16: cannot find symbol
    symbol  : class HttpServletRequest
    location: class org.apache.jsp.axis2_002dweb.index_jsp
      public void _jspService(HttpServletRequest request, HttpServletResponse response)
                              ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:16: cannot find symbol
    symbol  : class HttpServletResponse
    location: class org.apache.jsp.axis2_002dweb.index_jsp
      public void _jspService(HttpServletRequest request, HttpServletResponse response)
                                                          ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:17: cannot find symbol
    symbol  : class ServletException
    location: class org.apache.jsp.axis2_002dweb.index_jsp
            throws java.io.IOException, ServletException {
                                        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:19: cannot find symbol
    symbol  : class JspFactory
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        JspFactory _jspxFactory = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:20: cannot find symbol
    symbol  : class PageContext
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        PageContext pageContext = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:21: cannot find symbol
    symbol  : class HttpSession
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        HttpSession session = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:22: cannot find symbol
    symbol  : class ServletContext
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        ServletContext application = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:23: cannot find symbol
    symbol  : class ServletConfig
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        ServletConfig config = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:24: cannot find symbol
    symbol  : class JspWriter
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        JspWriter out = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:25: incompatible types
    found   : org.apache.jsp.axis2_002dweb.index_jsp
    required: java.lang.Object
        Object page = this;
                      ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:26: cannot find symbol
    symbol  : class JspWriter
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        JspWriter _jspx_out = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:27: cannot find symbol
    symbol  : class PageContext
    location: class org.apache.jsp.axis2_002dweb.index_jsp
        PageContext _jspx_page_context = null;
        ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:31: cannot find symbol
    symbol  : variable JspFactory
    location: class org.apache.jsp.axis2_002dweb.index_jsp
          _jspxFactory = JspFactory.getDefaultFactory();
                         ^
     
     
    Une erreur s'est produite à la ligne: 23 dans le fichier jsp: /axis2-web/index.jsp
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:48: package org.apache.jasper.runtime does not exist
          org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "include/httpbase.jsp", out, false);
                                   ^
     
     
    Une erreur s'est produite à la ligne: 29 dans le fichier jsp: /axis2-web/index.jsp
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:56: package org.apache.jasper.runtime does not exist
          org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "include/header.inc", out, false);
                                   ^
     
     
    Une erreur s'est produite à la ligne: 56 dans le fichier jsp: /axis2-web/index.jsp
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:83: package org.apache.jasper.runtime does not exist
          org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "include/footer.inc", out, false);
                                   ^
     
     
    Erreur de servlet générée:
    C:\Documents and Settings\monpseudo\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AMIE_webservice\org\apache\jsp\axis2_002dweb\index_jsp.java:88: cannot find symbol
    symbol  : class SkipPageException
    location: class org.apache.jsp.axis2_002dweb.index_jsp
          if (!(t instanceof SkipPageException)){
                             ^
    22 errors
     
     
     
    	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
    	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
    	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     
     
    note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/6.0.26.
     
     
    --------------------------------------------------------------------------------
     
    Apache Tomcat/6.0.26
    Pourtant j'ai jamais eu aucun problème auparavant pour déployer mon web service, je n'ai acuune erreur sous eclipse, bref je suis perdu et je vous remercié énormément pour votre aide !

    PS : j'ai bien inclus dans le projet le fichier servlet-api donc pas de prob de ce côté...

  2. #2
    Nouveau membre du Club
    Inscrit en
    Septembre 2009
    Messages
    32
    Détails du profil
    Informations forums :
    Inscription : Septembre 2009
    Messages : 32
    Points : 34
    Points
    34
    Par défaut
    Bonjour,

    Es-tu sûr d'avoir importé tous les .jar qu'il faut, pour le développement web (servlets + JSP) ???

    servlet-api.jar ne suffit pas, il faut aussi jsp-api.jar et jasper-runtime.jar

  3. #3
    Futur Membre du Club
    Inscrit en
    Février 2010
    Messages
    7
    Détails du profil
    Informations forums :
    Inscription : Février 2010
    Messages : 7
    Points : 7
    Points
    7
    Par défaut impossible de compiler la classe pour la jsp
    Slt
    J'ai un prob au niveau de l'emplacement de la classe .java ds un projet en jsp!!!! Pouvez ous m'aidez???

    NB: ERREUR impossible de compiler la classe pour la jsp

Discussions similaires

  1. Réponses: 8
    Dernier message: 06/01/2013, 09h55
  2. Réponses: 3
    Dernier message: 26/01/2012, 18h56
  3. Réponses: 1
    Dernier message: 07/10/2009, 11h29
  4. Réponses: 11
    Dernier message: 07/01/2009, 11h59
  5. Réponses: 1
    Dernier message: 02/02/2008, 12h54

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