• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compilation error

 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i am trying to run following code

i am getting following error

HTTP Status 500 -

--------------------------------------------------------------------------------

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: 6 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 7 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 8 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 9 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 10 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 11 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 12 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 13 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 14 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 15 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 16 in the generated java file
Syntax error on token ";", delete this token

An error occurred at line: 17 in the generated java file
Syntax error on token ";", delete this token

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18


 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An error occurred at line: 6 in the generated java file
Syntax error on token ";", delete this token




 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
An error occurred at line: 6 in the generated java file
Syntax error on token ";", delete this token



i didn't get what you are saying.
what changes i have to make.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Step 1: refactor the JSP to remove any Java code and use only the JSTL and EL. Java code in a JSP is a poor practice that has been discredited for 10 years!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic