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] C:\Tomcat 4.1\work\Standalone\localhost\jaspersample\jsp\Excel_jsp.java:75: cannot resolve symbol [javac] symbol : method getConnection () [javac] location: class org.apache.jsp.Excel_jsp [javac] Connection conn = getConnection(); [javac] ^ [javac] 1 error

Coderanch | Asit Patadia | 1 decade ago
  1. 0

    JasperReports + JSP

    Coderanch | 1 decade ago | Asit Patadia
    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] C:\Tomcat 4.1\work\Standalone\localhost\jaspersample\jsp\Excel_jsp.java:75: cannot resolve symbol [javac] symbol : method getConnection () [javac] location: class org.apache.jsp.Excel_jsp [javac] Connection conn = getConnection(); [javac] ^ [javac] 1 error
  2. 0

    How to get session variable in ajax request page?

    Stack Overflow | 4 years ago | Cicil Thomas
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 2 in the jsp file: /profiles/Home/ajaxAnsRun.jsp Generated servlet error: [javac] Compiling 1 source file C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\Indus\profiles\Home\ajaxAnsRun_jsp.java:66: cannot find symbol symbol : variable stdId location: class org.apache.jsp.ajaxAnsRun_jsp stdId=String.valueOf(session.getAttribute("stdId")); ^ An error occurred at line: 2 in the jsp file: /profiles/Home/ajaxAnsRun.jsp Generated servlet error: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\Indus\profiles\Home\ajaxAnsRun_jsp.java:70: cannot find symbol symbol : variable stdId location: class org.apache.jsp.ajaxAnsRun_jsp result= obj.hideAnsNotify(notId,stdId); ^ 2 errors
  3. 0

    Unable to compile class for JSP

    theserverside.com | 8 months ago
    org.apache.jasper.JasperException: Unable to compile class for JSP
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Newbie JDBC + JSP

    Google Groups | 1 decade ago | Alex Schatten
    org.apache.jasper.JasperException
  6. 0

    JDBC & MySQL connection

    Google Groups | 1 decade ago | Ho Lun
    org.apache.jasper.JasperException: Server configuration denies access to data source

  1. Andreas Häber 1 times, last 4 weeks ago
  2. Justin 2 times, last 4 months ago
  3. abrazeneb 4 times, last 5 months ago
  4. andyglick 12 times, last 3 months ago
  5. Plato2000 6 times, last 7 months ago
71 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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] C:\Tomcat 4.1\work\Standalone\localhost\jaspersample\jsp\Excel_jsp.java:75: cannot resolve symbol [javac] symbol : method getConnection () [javac] location: class org.apache.jsp.Excel_jsp [javac] Connection conn = getConnection(); [javac] ^ [javac] 1 error

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
    3. org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
    5. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
    6. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
    7. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    8. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    8 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    1 frame
  4. Glassfish Core
    ContainerBase.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    4. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    6. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    8. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    11. org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    12. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    13. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    14. org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    15. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    16. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    17. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    18. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    19. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    20. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    21. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    22. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    23. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    23 frames
  5. org.apache.coyote
    CoyoteAdapter.service
    1. org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    1 frame
  6. Grizzly HTTP
    TcpWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
    3. org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
    3 frames
  7. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
    1 frame
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:534)
    1 frame