Jasper refuses to compile JSP pages. JAVA_HOME parameter is set correctly (Tomcat indicates it when started using startup.bat from the installation). tools.jar is copied to common\lib. Stack trace: 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(DefaultErrorHandler.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)
If the problem is about compiling any JSP pages, I have yet to see a case where this isn't caused by javac not being found, for whatever reason. The report isn't very clear overall. Please post on tomcat-user.
Tomcat is producing this misleading message when it encounters any compilation errors while compiling any JSP file. It stuffs those errors messages in the server log. Perhaps you could change the error output to something less confusing because it is NOT in fact having trouble finding the compiler. -JW
This can occur only if somehow the output capture fails (which it never does with the default configuration). I consider this good enough, please do not reopen this report.