Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Exception

 
Ayan Dutta
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ayan Dutta
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic