Hi guys , i wrote a jsp and when i run on tomcat , it gives me a 500 error :
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.
First: this is a Tomcat question. Ask in the Tomcat forum and you will get more enthusiastic help. Second: Make sure to give them as much information as possible. - What version of Tomcat are you running? - What JDK are you using? - What OS are you running on? - If Windows, did you install it as a service and are you running that way?
I've seen this happen when the windows installer for Tomcat finds the wrong Java installation. Unistalling and then reinstalling fixes the problem. I've also heard that having the JAVA_HOME environment variable set before running the Tomcat install helps but, having never looked at the code or tried it, I can't say for sure if it's true. Can't hurt though. [ February 06, 2005: Message edited by: Ben Souther ]