tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Henkel <h.hen...@gs-automation.de>
Subject Re: Unable to find a javac compiler error
Date Tue, 19 Oct 2004 08:15:12 GMT
Dumb question:

Did you install a Javac compiler ?

This is included only in the J2SDK, not in the JRE.

Andrea Mennini wrote:
> 
> Antony Paul wrote:
> 
> >Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
> >[...]
> >
> >
> No. It does not work.
> 
> This is the error:
> 
> ======
> 
> *type* Exception report
> 
> *message*
> 
> *description* _The server encountered an internal error () that
> prevented it from fulfilling this request._
> 
> *exception*
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
>         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
>         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
>         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
>         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:802)
> 
> *root cause*
> 
> 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
>         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
>         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
>         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
>         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:802)
> 
> --
> 
> Andrea Mennini
> Cisco Certified Network Associate (CCNA (r))
> 
> ICQ:5459894
> Registered Linux User #24583
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Harald Henkel

GS automation GmbH
Winterstra├če 2
82223 Eichenau
Germany
Tel:    + 49-8141-35 731-37
Fax:    + 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: H.Henkel@GS-automation.DE
Web:    www.GS-automation.DE

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message