Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Tomcat Exception

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic