Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to fix JSP compile error

Status
Not open for further replies.

jdubowy

Programmer
Mar 1, 2001
13
US
I got the following error while trying to load a jsp page. Does anybody know how can I fix or get arround it?

org.apache.jasper.JasperException: Unable to compile class for JSP
C:\jakarta-tomcat-4.0.2\work\localhost\JobsSite\myForm$jsp.java:757: 'catch' without 'try'.
} catch (Throwable t) {

I am new to jsp/servlets, and I am unsure exactly where this exception handler is (which it seems I need to know in order to add the try). It isn't in my code, but I"m wondering if there could be something in my code that set this off(?).

thanks,
jdubowy
 
The problem is within the code which tomcat is trying to compile. What this error message usually indicates is that there is one too many '}' before the catch statement.
 
Thanks for the info.....In general, do you have any advice as to how I can interpret the various error messages that occur when tomcat tries to load a page?....
also, I have problems with Tomcat not recompiling modifed jsp files...I've added
<DefaultContext reloadable=&quot;true&quot;/>
to the server.xml file, but I still seem to have problems (ex. I get error messages a while after modifying files, thus leaving me a bit in the dark as to what it was that provoked the error - especially given that I am not quite sure how to interpret the error messages)
thanks again,
jdubowy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top