By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

Tomcat/Jsp Configuration Problem

P: 1
I hv created one simple jsp page in root folder under C:\Tomcat 5.0\webapps\ROOT
as follows .....
<html>
<body>
Hello World.
</body>
</html>

I hAVE SET THE classpATHbut whenever i am trying to run ("http://localhost:8080/hw.jsp") the same page using IE6
it is showing "HTTP-Status 500" and the root cause as following.....
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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va:105)
org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:758)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:407)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:497)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:476)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:464)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(Htt
Oct 16 '07 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
I hv created one simple jsp page in root folder under C:\Tomcat 5.0\webapps\ROOT
as follows .....
<html>
<body>
Hello World.
</body>
</html>

I hAVE SET THE classpATHbut whenever i am trying to run ("http://localhost:8080/hw.jsp") the same page using IE6
it is showing "HTTP-Status 500" and the root cause as following.....
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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va:105)
org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:758)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:407)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:497)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:476)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:464)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(Htt
Read the exception trace for the root cause.
Oct 16 '07 #2

P: 40
set the classpath of java directory as set classpath of tomcat

eg: D:\Tomcat 5.5\common\lib\servlet-api.jar
Oct 16 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.