944,208 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 9251
  • JSP RSS
Feb 27th, 2006
0

tomcat5.0 server encountering a internal error while using jsp

Expand Post »
getting the follg error after installing
tomcat5.0, jre, j2se and ms-access


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.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)
note The full stack trace of the root cause is
available in the Apache Tomcat/5.0.28 logs.

Apache Tomcat/5.0.28

i'm occuring this following when i acess my jsp file

plz help me in this regards

thank u in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
k_satish0101 is offline Offline
9 posts
since Feb 2006
Mar 1st, 2006
0

Re: tomcat5.0 server encountering a internal error while using jsp

Quote originally posted by k_satish0101 ...
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
Have you actually checked your setenv/catalina script to
ensure that the variable JAVA_HOME points to a JDK
(i.e. /usr/java) or to a jre (i.e. /usr/java/jre). If your
JAVA_HOME variable points to a jre, then there is no javac
(as the error message says) to use inorder to compile the
jsp.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Mar 1st, 2006
0

Re: tomcat5.0 server encountering a internal error while using jsp

Quote originally posted by masijade ...
Have you actually checked your setenv/catalina script to
ensure that the variable JAVA_HOME points to a JDK
(i.e. /usr/java) or to a jre (i.e. /usr/java/jre). If your
JAVA_HOME variable points to a jre, then there is no javac
(as the error message says) to use inorder to compile the
jsp.
thank u for ur response
may i need to install jdk to avoid this error
Reputation Points: 10
Solved Threads: 0
Newbie Poster
k_satish0101 is offline Offline
9 posts
since Feb 2006
Mar 1st, 2006
0

Re: tomcat5.0 server encountering a internal error while using jsp

thank u for ur response
may i need to install jdk to avoid this error
Reputation Points: 10
Solved Threads: 0
Newbie Poster
k_satish0101 is offline Offline
9 posts
since Feb 2006
Mar 2nd, 2006
0

Re: tomcat5.0 server encountering a internal error while using jsp

If all you have is a jre, then yes, you need to install a jdk. Servlets will work
without a jdk as they are compiled before tomcat ever sees them. JSP pages,
on the other hand, are translated into java classes/files and then compiled by
tomcat the first time they are accessed, or the first time they are accessed
after having been changed since the last time it was compiled. Tomcat cannot
do this unless it has access to a compiler (javac). It only has this if a jdk is
installed and JAVA_HOME points to the jdk, not the jre (which is also included in
the jdk as a jre subdirectory).
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: I need the code??????
Next Thread in JSP Forum Timeline: Help!!!Need JSP Hit Counter





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC