File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes unable to compile class for jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "unable to compile class for jsp" Watch "unable to compile class for jsp" New topic
Author

unable to compile class for jsp

moo moo farm gal
Greenhorn

Joined: Oct 24, 2003
Posts: 3
Hi all,
I just installed Tomcat 4.1.27 and JDK 1.4 on a WIN2K server. But it doesn't work and kept on telling me it can't compile jsp files. I checked the environment variables and path , and they're pointing to the correct directory, so i'm kinda puzzled why it can't compile

The error starts here...any help appreciated.
---------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Tomcat\work\Standalone\localhost\_\index_jsp.java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
if (pageContext != null) pageContext.handlePageException(t);
^
1 error

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.
.
.
.
.
.
.
.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
Are you able to see the normal Tomcat startup screen? How about the JSP examples?
IMPORTANT NOTE: Tomcat pays no attention to the Environment classpath.
Bill
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

what are the environment variables, what is their exact case, and what do they point to ?
 
IntelliJ Java IDE
 
subject: unable to compile class for jsp
 
Threads others viewed
Jsp files error....
Tomcat Error
Where does this package go?
compiling bean
Tomcat on Linux
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture