| Author |
Tomcat Exception
|
Ayan Dutta
Ranch Hand
Joined: Oct 16, 2005
Posts: 94
|
|
Hi I am using Tomcat 5.0 and jdk1.4.2_05 When I am trying to run any JSP page the following error is coming .. org.apache.jasper.JasperException: Unable to compile class for JSP Can anybody provide any solution ? Regards Ayan
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Take a look at the log files under tomcat/logs. You should see a full stack trace in one of them. There are several reasons for this error. It could be an error in your jsp code. It could be that Tomcat can't find a javac compiler. It could be a file permissions problem.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Ayan Dutta
Ranch Hand
Joined: Oct 16, 2005
Posts: 94
|
|
The error I mentioned is becaues of the Tomcat not being able find a javac compiler. I have set the JAVA_HOME,CLASSPATH Properly.Even the examples provided by Tomcat are running fine .Any clue ? Regards, Ayan
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
The example JSPs that ship with Tomcat are pre-compiled so the fact that they're running is not proof that your JAVA_HOME environment variable is set properly. Your CLASSPATH variable is not used by Tomcat. How do you know your JAVA_HOME environment variable is working? How have you tested it?
|
 |
 |
|
|
subject: Tomcat Exception
|
|
|