Correcting the error makes things ok. Now the error is not coming as I removed jdk1.3.1 and built TC using jdk 1.4.1.
Antony Paul ----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 7:31 PM Subject: RE: No Java compiler was found .... Howdy, Did you fix the actual error that's in the log, as opposed to this tools.jar error which can sometimes mask the root cause? Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Antony Paul [mailto:[EMAIL PROTECTED] >Sent: Wednesday, January 07, 2004 8:34 AM >To: Tomcat Users List >Subject: No Java compiler was found .... > >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(DefaultErro >rHandl >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:3 >01) > 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]