Hello all, When i try to access the login page for my application I get the following error. Other jsps render well but not the login.jsp.
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.
If you're running tomcat from the startup.sh or startup.bat file, this means that you either don't have a full JDK (you're running with only a JRE) or your JAVA_HOME environment variable isn't set properly.
The quickest way to test is to type (from the command line): $JAVA_HOME/bin/javac or if on windows: %JAVA_HOME%\bin\javac
If you see "file or program not found", it's not set properly.
If you've installed it as a Windows service, the installer may have found the wrong JRE on your machine. This can be fixed by updating the Java entry in the Tomcat Config screen (if you've installed it). If you haven't installed the the start menu items, you can edit this yourself with regedit or just uninstall and re-install Tomcat. Be sure to verify that it found the right path to your JDK installation.
I've read that having the JAVA_HOME env variable properly set before installing as a Windows service can help prevent this but I don't know how much truth there is to it. [ December 26, 2004: Message edited by: Ben Souther ]