Hi all,
  I am using Tomcat 5.0.16(for testing purpose only). When a page is having
an error like missing semicolon or a special character in code it is giving
the following error in browser.
org.apache.jasper.JasperException: Unable to compile class for JSP

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from
the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
restart.
If using an alternate Java compiler, please check its installation and
access path.

        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl
er.java:127)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:
351)
        org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
552)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
291)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Interestingly it is printing lots of lines in console including the
classpath and the actual error(; expected).
I am using it on Win2k SP4 machine which have both JDK1.3.1 and 1.4.1
installed. I compiled Tomcat from source. I  remember that JDK 1.4.1 is used
for compiling Tomcat and in startup.bat I have set the JAVA_HOME and
CATALINA_HOME to JDK1.4.1.  On getting error message I copied tools.jar to
common\lib and error persists.

Antony Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to