goranwong
asked on
Error Loading JSP!
Hi experts,
i just have my tomcat 5.0.2.7 setup on windows 2000 SP4 station. However, no matter what jsp file i run, the browser returns following error.
HTTP Status 500 -
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperEx ception: Unable to compile class for JSP
org.apache.jasper.compiler .DefaultEr rorHandler .javacErro r(DefaultE rrorHandle r.java:97)
org.apache.jasper.compiler .ErrorDisp atcher.jav acError(Er rorDispatc her.java:3 46)
org.apache.jasper.compiler .Compiler. generateCl ass(Compil er.java:41 4)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:472)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:451)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:439)
org.apache.jasper.JspCompi lationCont ext.compil e(JspCompi lationCont ext.java:5 11)
org.apache.jasper.servlet. JspServlet Wrapper.se rvice(JspS ervletWrap per.java:2 95)
org.apache.jasper.servlet. JspServlet .serviceJs pFile(JspS ervlet.jav a:292)
org.apache.jasper.servlet. JspServlet .service(J spServlet. java:236)
javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.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.taskd efs.compil ers.Compil erAdapterF actory.get Compiler(C ompilerAda pterFactor y.java:106 )
org.apache.tools.ant.taskd efs.Javac. compile(Ja vac.java:9 35)
org.apache.tools.ant.taskd efs.Javac. execute(Ja vac.java:7 64)
org.apache.jasper.compiler .Compiler. generateCl ass(Compil er.java:38 2)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:472)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:451)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:439)
org.apache.jasper.JspCompi lationCont ext.compil e(JspCompi lationCont ext.java:5 11)
org.apache.jasper.servlet. JspServlet Wrapper.se rvice(JspS ervletWrap per.java:2 95)
org.apache.jasper.servlet. JspServlet .serviceJs pFile(JspS ervlet.jav a:292)
org.apache.jasper.servlet. JspServlet .service(J spServlet. java:236)
javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
Is that anything wrong with my config?
Please help.
Thank you very much,
Goran
i just have my tomcat 5.0.2.7 setup on windows 2000 SP4 station. However, no matter what jsp file i run, the browser returns following error.
HTTP Status 500 -
--------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperEx
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.JspCompi
org.apache.jasper.servlet.
org.apache.jasper.servlet.
org.apache.jasper.servlet.
javax.servlet.http.HttpSer
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.taskd
org.apache.tools.ant.taskd
org.apache.tools.ant.taskd
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.JspCompi
org.apache.jasper.servlet.
org.apache.jasper.servlet.
org.apache.jasper.servlet.
javax.servlet.http.HttpSer
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
Is that anything wrong with my config?
Please help.
Thank you very much,
Goran
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this is what I do in my computer
c:\tomcat 5.0.2.7>set JAVA_HOME=C:\j2sdk1.4.1_01
c:\tomcat 5.0.2.7>cd bin
and then run tomcat