org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: [javac] Compiling 1 source file D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:41: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp UserData user = null; ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:43: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) pageContext.getAttribute("user", PageContext.SESSION_SCOPE); ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:46: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData"); ^ 3 errors

Oracle Community | 807541 | 1 decade ago
  1. 0

    Error while running JSP's on tomcat 4.1.18- org.apache.jasper.JasperExcepti

    Oracle Community | 1 decade ago | 807541
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: [javac] Compiling 1 source file D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:41: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp UserData user = null; ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:43: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) pageContext.getAttribute("user", PageContext.SESSION_SCOPE); ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:46: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData"); ^ 3 errors
  2. 0

    Unable to compile class for JSP

    Oracle Community | 1 decade ago | 807541
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: [javac] Compiling 1 source file D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:41: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp UserData user = null; ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:43: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) pageContext.getAttribute("user", PageContext.SESSION_SCOPE); ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:46: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData"); ^ 3 errors
  3. 0

    Org.apache.jasper.JasperException: Unable to compile class f - Front-end - GUJ

    com.br | 11 months ago
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 1 in the jsp file: /controlador.jsp Generated servlet error: [javac] Compiling 1 source file C:Program FilesApache GroupTomcat 4.1workStandalonelocalhostcopacontrolador_jsp.java:45: package ljk.copa2002.bd does not exist ljk.copa2002.bd.BD oBD = null; ^ An error occurred at line: 1 in the jsp file: /controlador.jsp Generated servlet error: C:Program FilesApache GroupTomcat 4.1workStandalonelocalhostcopacontrolador_jsp.java:47: package ljk.copa2002.bd does not exist oBD = (ljk.copa2002.bd.BD) pageContext.getAttribute("oBD", PageContext.SESSION_SCOPE); ^ An error occurred at line: 1 in the jsp file: /controlador.jsp Generated servlet error: C:Program FilesApache GroupTomcat 4.1workStandalonelocalhostcopacontrolador_jsp.java:50: package ljk.copa2002.bd does not exist oBD = (ljk.copa2002.bd.BD) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ljk.copa2002.bd.BD"); ^ An error occurred at line: 1 in the jsp file: /controlador.jsp Generated servlet error: Note: C:Program FilesApache GroupTomcat 4.1workStandalonelocalhostcopacontrolador_jsp.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 3 errors
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    connection to database

    Oracle Community | 1 decade ago | 843835
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 6 in the jsp file: /CarsList.jsp Generated servlet error: [javac] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:58: 'try' without 'catch' or 'finally' try ^ An error occurred at line: 51 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:109: 'else' without 'if' }else{ ^ An error occurred at line: 6 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:126: illegal start of type } catch (Throwable t) { ^ C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:133: expected } ^ C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:135: 'class' or 'interface' expected } ^ C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:136: 'class' or 'interface' expected ^ C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:55: cannot resolve symbol symbol : class Connection location: class org.apache.jsp.CarsList_jsp Connection con = null; ^ An error occurred at line: 6 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:56: cannot resolve symbol symbol : class Statement location: class org.apache.jsp.CarsList_jsp Statement stmt = null; ^ An error occurred at line: 6 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:57: cannot resolve symbol symbol : class ResultSet location: class org.apache.jsp.CarsList_jsp ResultSet rs = null; ^ An error occurred at line: 6 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:61: cannot resolve symbol symbol : variable DriverManager location: class org.apache.jsp.CarsList_jsp con = DriverManager.getConnection(connectionURL); ^ An error occurred at line: 6 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:70: cannot resolve symbol symbol : class ResultSetMetaData location: class org.apache.jsp.CarsList_jsp ResultSetMetaData rsmd = rs.getMetaData(); ^ An error occurred at line: 55 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:118: cannot resolve symbol symbol : variable rs location: class org.apache.jsp.CarsList_jsp if(rs!= null)rs.close(); ^ An error occurred at line: 55 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:118: cannot resolve symbol symbol : variable rs location: class org.apache.jsp.CarsList_jsp if(rs!= null)rs.close(); ^ An error occurred at line: 55 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:119: cannot resolve symbol symbol : variable con location: class org.apache.jsp.CarsList_jsp if(con != null) con.close(); ^ An error occurred at line: 55 in the jsp file: /CarsList.jsp Generated servlet error: C:\Tomcat 4.1\work\Standalone\localhost\cars\CarsList_jsp.java:119: cannot resolve symbol symbol : variable con location: class org.apache.jsp.CarsList_jsp if(con != null) con.close(); ^ 15 errors
  6. 0

    Cannot Compile class

    Oracle Community | 1 decade ago | 843835
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 0 in the jsp file: /jsp/sample1.jsp Generated servlet error: [javac] Compiling 1 source file C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jspsmartfile\jsp\sample1_jsp.java:7: package com.jspsmart.file does not exist import com.jspsmart.file.*; ^ C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jspsmartfile\jsp\sample1_jsp.java:42: package com.jspsmart.file does not exist com.jspsmart.file.SmartFile mySmartFile = null; ^ An error occurred at line: 0 in the jsp file: /jsp/sample1.jsp Generated servlet error: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jspsmartfile\jsp\sample1_jsp.java:44: package com.jspsmart.file does not exist mySmartFile = (com.jspsmart.file.SmartFile) pageContext.getAttribute("mySmartFile", PageContext.PAGE_SCOPE); ^ An error occurred at line: 0 in the jsp file: /jsp/sample1.jsp Generated servlet error: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jspsmartfile\jsp\sample1_jsp.java:47: package com.jspsmart.file does not exist mySmartFile = (com.jspsmart.file.SmartFile) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jspsmart.file.SmartFile"); ^ 4 errors

  1. treefolk 1 times, last 1 week ago
  2. Andreas Häber 1 times, last 1 month ago
  3. Justin 2 times, last 4 months ago
  4. abrazeneb 4 times, last 5 months ago
  5. andyglick 12 times, last 3 months ago
1 more registered users
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: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: [javac] Compiling 1 source file D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:41: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp UserData user = null; ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:43: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) pageContext.getAttribute("user", PageContext.SESSION_SCOPE); ^ An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp Generated servlet error: D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:46: cannot resolve symbol symbol : class UserData location: class org.apache.jsp.JspSession_NextPage_jsp user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData"); ^ 3 errors

    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:340)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
    5. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
    6. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
    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:260)
    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:170)
    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:432)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
    3. org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
    3 frames
  7. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
    1 frame
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:536)
    1 frame