I have spent the past few days scouring forums and the net looking for a solution to this. I have read a lot of fixes but as yet haven't had any luck correcting the error. The error is: *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* HTTP Status 500 -
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 263 in the generated java file Syntax error, insert "else Statement" to complete IfStatement
An error occurred at line: 263 in the generated java file Syntax error, insert "}" to complete Block
An error occurred at line: 273 in the generated java file Syntax error on token "}", delete this token
An error occurred at line: 274 in the generated java file Syntax error, insert "}" to complete ClassBody
Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.jav acError(Unknown Source) org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(Unknown Source) org.apache.jasper.compiler.JDTCompiler.generateCla ss(Unknown Source) org.apache.jasper.compiler.Compiler.compile(Unknow n Source) org.apache.jasper.compiler.Compiler.compile(Unknow n Source) org.apache.jasper.compiler.Compiler.compile(Unknow n Source) org.apache.jasper.JspCompilationContext.compile(Un known Source) org.apache.jasper.servlet.JspServletWrapper.servic e(Unknown Source) org.apache.jasper.servlet.JspServlet.serviceJspFil e(Unknown Source) org.apache.jasper.servlet.JspServlet.service(Unkno wn Source) javax.servlet.http.HttpServlet.service(Unknown Source)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0-snapshot logs. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* The url on the error page is: 10.0.0.241:8080/cca/docs/display_docs.jsp?cca_key=8356&field=cmpy_name&valu e=ROSE&type=Search&cmpyname=ROSE%20INNES%20AUCTION S%20CC&branch=East%20London®no=200407393023&dt= Thu%20Jul%2017%202008%2015:44:38%20GMT+0200%20(SAS T) so I assume that the jsp in question is display_docs.jsp - but this script only has 126 lines. I have found the class that is created but the class is created new at runtime of the application so editing that is pointless.
Is the error being caused due to the "Unknown Source"? If this is causing the problem, where can I get the known source?
The code was developed in NetBeans 5.5 and is being run on an external server running Tomcat 6. My servlet.jar is set as /usr/share/tomcat-servlet-api-2.5/lib/servlet-api.jar
This is the JSP. The JSP only has 126 lines of code and the error is on line 263.... There is no other JSP with a name that is even similar to this. I have had to change on click since I could not post this with the command in the code. The command is correct in the code Any ideas?
I don't mind finding the error on my own. Would you be able to explain how the compiler for NetBeans 5.5 works and how or what it uses to build the classes for the jsp? With this information, I'm sure I'll be able to hunt the error myself.