File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Cause for this error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Cause for this error" Watch "Cause for this error" New topic

Cause for this error

Lalit Kapoor

Joined: Jun 06, 2004
Posts: 20
Could you pls tell me what is the cause for this error. I am installing XPlanner and i am facing this error while viewing index.jsp of xplanner:

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] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] javac: invalid flag: C:\Program [javac] Usage: javac [javac] where possible options include: [javac] -g Generate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source} Generate only some debugging info [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath Specify where to find user class files [javac] -sourcepath Specify where to find input source files [javac] -bootclasspath Override location of bootstrap class files [javac] -extdirs Override location of installed extensions [javac] -d Specify where to place generated class files [javac] -encoding Specify character encoding used by source files [javac] -source Provide source compatibility with specified release [javac] -target Generate class files for specific VM version [javac] -help Print a synopsis of standard options at org.apache.jasper.compiler.DefaultErrorHandler.javacError( at org.apache.jasper.compiler.ErrorDispatcher.javacError( at org.apache.jasper.compiler.Compiler.generateClass( at org.apache.jasper.compiler.Compiler.compile( at org.apache.jasper.JspCompilationContext.compile( at org.apache.jasper.servlet.JspServletWrapper.service( at org.apache.jasper.servlet.JspServlet.serviceJspFile( at org.apache.jasper.servlet.JspServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
According to my notes, most of those line: -1 are due to configuration errors. Are the XPlanner jar files in the WEB-INF/lib directory.
Can you run the Tomcat example JSP ok?
I agree. Here's the link:
subject: Cause for this error
It's not a secret anymore!