This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat  Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat  Exception" Watch "Tomcat  Exception" New topic
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Exception
 
Similar Threads
F1 :cannot deploy in jakarta-tomcat-5.5.9
tomcat 4.1.29 linux+servlet
Upload file
running JSP file in Tomcat
Tomcat Shutdown problem