Newsgroup: it.comp.java
Titolo: [TOMCAT]

Buongiorno a tutti.
Ho un piccolo(?) problema con Tomcat 4.1.18
Dopo l'installazione effettuata con successo(!) il container non riesce a
compilare le jsp (neanche l'index di pasrtenza). Vi allego il messaggio
d'errore (scusate la lunghezza). Premetto che:
O.S.: Win2000 (rete LAN)
CATALINA_HOME settata [C:\tomcat].
JAVA_HOME settata [C:\j2sdk1.4.1_01].
Nel ClassPath ho incluso tools.jar (per la compilazione)
[C:\j2sdk1.4.1_01\lib\tools.jar].
PATH settato correttamente.
File di configurazione (server.xml e web.xml) non modificati.
Qualcuno ha riscontrato lo stesso problema? Ho proprio bisogno di una mano
per andare avanti... (vorrei evitare inutili "formattoni").
Grazie,
Fausto.
2003-01-31 08:25:38 Info: Compile:
javaFileName=C:\tomcat\work\Standalone\localhost\_\/index_jsp.java
classpath=C:/tomcat/shared/classes/;C:/tomcat/common/classes/;C:/tomcat/comm
on/endorsed/xercesImpl.jar;C:/tomcat/common/endorsed/xmlParserAPIs.jar;C:/to
mcat/common/lib/activation.jar;C:/tomcat/common/lib/ant.jar;C:/tomcat/common
/lib/commons-collections.jar;C:/tomcat/common/lib/commons-dbcp.jar;C:/tomcat
/common/lib/commons-logging-api.jar;C:/tomcat/common/lib/commons-pool.jar;C:
/tomcat/common/lib/jasper-compiler.jar;C:/tomcat/common/lib/jasper-runtime.j
ar;C:/tomcat/common/lib/jdbc2_0-stdext.jar;C:/tomcat/common/lib/jndi.jar;C:/
tomcat/common/lib/jta.jar;C:/tomcat/common/lib/mail.jar;C:/tomcat/common/lib
/naming-common.jar;C:/tomcat/common/lib/naming-factory.jar;C:/tomcat/common/
lib/naming-resources.jar;C:/tomcat/common/lib/servlet.jar;C:/tomcat/common/l
ib/tools.jar
     cp=C:\tomcat\shared\classes
     cp=C:\tomcat\common\classes
     cp=C:\tomcat\common\endorsed\xercesImpl.jar
     cp=C:\tomcat\common\endorsed\xmlParserAPIs.jar
     cp=C:\tomcat\common\lib\activation.jar
     cp=C:\tomcat\common\lib\ant.jar
     cp=C:\tomcat\common\lib\commons-collections.jar
     cp=C:\tomcat\common\lib\commons-dbcp.jar
     cp=C:\tomcat\common\lib\commons-logging-api.jar
     cp=C:\tomcat\common\lib\commons-pool.jar
     cp=C:\tomcat\common\lib\jasper-compiler.jar
     cp=C:\tomcat\common\lib\jasper-runtime.jar
     cp=C:\tomcat\common\lib\jdbc2_0-stdext.jar
     cp=C:\tomcat\common\lib\jndi.jar
     cp=C:\tomcat\common\lib\jta.jar
     cp=C:\tomcat\common\lib\mail.jar
     cp=C:\tomcat\common\lib\naming-common.jar
     cp=C:\tomcat\common\lib\naming-factory.jar
     cp=C:\tomcat\common\lib\naming-resources.jar
     cp=C:\tomcat\common\lib\servlet.jar
     cp=C:\tomcat\common\lib\tools.jar
     work dir=C:\tomcat\work\Standalone\localhost\_
    srcDir=C:\tomcat\work\Standalone\localhost\_
    include=index_jsp.java
Exception compiling Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
2003-01-31 08:25:38 Exception:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
 at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C
ompilerAdapterFactory.java:139)
 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:833)
 at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
 at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:308)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:536)
2003-01-31 08:25:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
    [javac] Compiling 1 source file
 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
 at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:536)

Perhaps JAVA_HOME does not point to the JDK
Mi sembra abbastanza esplicito. Hai installato il JDK completo, vero?
Non solo il JRE? Per compilare le JSP serve javac...

 wrote in message
news:3e5182e9...@news.tiscali.it...

Certo che ho installato il jdk. Hai letto bene il post orginale?


Il messaggio e' molto esplicito: non trova javac, che e' una classe java, compresa nel'SDK
e precisamente nel jar "tools.jar"; includi il jar nel classpath di tomcat e tutto
funziona.
Ciao,
    Bruno.
---
| Bruno Bossola 
| A Java Software Engineer :-)
| 
http://digilander.iol.it/bbossola
|
| Membro del JUG Torino - 
http://www.jugtorino.it
| 

 
Anche il mio post originale è esplicito.... va be'....

Anche il mio post originale è esplicito.... va be'....
non aiutano :-)
