aspose file tools*
The moose likes JSP and the fly likes compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "compilation error" Watch "compilation error" New topic
Author

compilation error

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 225

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

Joined: Jul 26, 2007
Posts: 10451
    
    8

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





[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 225

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

Joined: Jan 10, 2002
Posts: 61434
    
  67

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!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: compilation error