Comment je peut résoudre mon problème(JSP-Tomcat)?

Comment je peut résoudre mon problème(JSP-Tomcat)? - Java - Programmation

Marsh Posté le 19-06-2002 à 03:33:27    

J'avait téléchargé le fichier zip nommé "jakarta-tomcat-3.3.zip" du site jakarta-tomcat  
nommé "http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.old/bin/jakarta-tomcat-3.3.zip"
et j'ai extrait ce fichier en mettant dans la partition primaire "C".  
 
Ensuite, j'ajoute les variables environnements :  
  - java_home=C:\jdk1.3
  - path=$java_home\bin;$path
  - tomcat_home=C:\jakarta-tomcat-3.3  
 
A la fin, j'ai créé un fichier nommé "Test.jsp" dans  
le répertoire "C:\jakarta-tomcat-3.3\webapps\ROOT"    
 
 
En cas où, j'ai fait "http://127.0.0.1:8080/index.html",  
il peut afficher cette page de défaut.
 
 
--------------------------------------------------
-----------------------------------------------
 
Mais, A la fois j'exécute "http://127.0.0.1:8080/Test.jsp", il produit l'erreur suivant.
 
 
Error: 500
Location: /Test.jsp
Internal Servlet Error:
 
org.apache.jasper.compiler.ParseException: Cannot read file: \Test.jsp
 at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at org.apache.jasper.compiler.JspReader.(Unknown Source)
 at org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
 at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
 at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
 at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
 at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
 at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 at org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
 at java.lang.Thread.run(Thread.java:484)
 
 
Et le contenu du serveur "Tomcat"
 
2002-06-19 06:55:11 - ServerXmlReader: Config=$TOMCAT_HOME\conf\server.xml
2002-06-19 06:55:11 - PathSetter: home=C:\jakarta-tomcat-3.3
2002-06-19 06:55:11 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-127.0.0.1.xml
2002-06-19 06:55:11 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-admin.xml
2002-06-19 06:55:11 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-examples.xml
2002-06-19 06:55:11 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-06-19 06:55:11 - AutoWebApp: Auto-Adding DEFAULT:/
2002-06-19 06:55:11 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-06-19 06:55:11 - ContextManager: Tomcat configured and in stable state
2002-06-19 06:55:11 - ContextManager: Adding  DEFAULT:/admin
2002-06-19 06:55:12 - ContextManager: Adding  DEFAULT:/examples
2002-06-19 06:55:12 - ContextManager: Adding  DEFAULT:/ROOT
EmbededTomcat: Init time 8131
2002-06-19 06:55:15 - Http10Interceptor: Starting on 8080
2002-06-19 06:55:15 - Ajp12Interceptor: Starting on 8007
2002-06-19 06:55:15 - Ajp13Interceptor: Starting on 8009
EmbededTomcat: Startup time 2003
2002-06-19 06:55:28 - Ctx() : Compiling: /Test.jsp to Test_0
2002-06-19 06:55:29 - Ctx() : compile error: req=R(  + /Test.jsp + null)  
  - org.apache.jasper.compiler.ParseException: Cannot read file: \Test.jsp
        at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
        at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
        at org.apache.jasper.compiler.JspReader.<init>(Unknown Source)
        at org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
        at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
        at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
        at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
 
        at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
        at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
        at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 
        at org.apache.tomcat.core.ContextManager.service(Unknown Source)
        at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:484)
 
2002-06-19 06:55:29 - Ctx() : Exception in R(  + /Test.jsp + null)
  - org.apache.jasper.compiler.ParseException: Cannot read file: \Test.jsp
        at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
        at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
        at org.apache.jasper.compiler.JspReader.<init>(Unknown Source)
        at org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
        at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
        at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
        at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
 
        at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
        at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
        at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 
        at org.apache.tomcat.core.ContextManager.service(Unknown Source)
        at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:484)
 
 
--------------------------------------------------
-----------------------------------------------
 
Même si je teste sur d'autre JSP example fournissant dans  
le répertoire "C:\jakarta-tomcat-3.3\webapps\examples\jsp",  
comme "http://127.0.0.1:8080/examples/jsp/num/numguess.jsp", il me produit les mêmes erreurs.  
 
 
Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
 
org.apache.jasper.compiler.ParseException: Cannot read file: \jsp\num\numguess.jsp
 at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at org.apache.jasper.compiler.JspReader.(Unknown Source)
 at org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
 at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
 at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
 at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
 at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
 at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 at org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
 at java.lang.Thread.run(Thread.java:484)

Reply

Marsh Posté le 19-06-2002 à 03:33:27   

Reply

Marsh Posté le 19-06-2002 à 08:19:27    

veasnamuch a écrit a écrit :

 
  - java_home=C:\jdk1.3
  - path=$java_home\bin;$path
  - tomcat_home=C:\jakarta-tomcat-3.3  
 



c'est pas des $ qu'il faut mettre, c'est des % :  
 


  - java_home=C:\jdk1.3
  - path=%java_home%\bin;%path%
  - tomcat_home=C:\jakarta-tomcat-3.3

Reply

Marsh Posté le 19-06-2002 à 08:19:50    

et puis pkoi tu prends tomcat 3.3 ? prend la V4 ...

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed