aspose file tools*
The moose likes Tomcat and the fly likes  Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Unable to compile class for JSP" Watch " Unable to compile class for JSP" New topic
Author

Unable to compile class for JSP

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
I have both Tomcat 4.1.12 and 4.1.24 on my win2000.
Recently I find that I can not run jsp (either my own or the examples) with 4.1.12. But 4.1.24 is OK.
When I run jsp in Tomcat 4.1.12 I get this message:
Any ideas? Thanks.

An error occurred at line: -1 in the jsp file: null
Generated servlet error: [javac] Compiling 1 source file
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
....


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

are you using one set of 'CATALINA_HOME' system variables for both installs? (that would not work, and would lead to problems).

Do you have a space in the CATALINA_HOME path? eg: C:\Program Files
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
>>are you using one set of 'CATALINA_HOME' system variables for both >>installs? (that would not work, and would lead to problems).
I did not set up 'CATALINA_HOME' in both installs.
>> Do you have a space in the CATALINA_HOME path? eg: C:\Program Files
My tomcat is installed under root: C:\tomcat4112 etc.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to compile class for JSP
 
Similar Threads
Tomcat 4.1.24 problems
How to access a JSP Page-Urgent
Unable to compile class for JSP
JAVA_HOME environment variable is not defined
Unable to compile class for JSP