org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:56: Class org.apache.jsp.DBSession not found. DBSession sess = null; ^ An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:59: Class org.apache.jsp.DBSession not found. sess= (DBSession) ^ An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:64: Class org.apache.jsp.DBSession not found. sess = (DBSession) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DBSession"); ^ 3 errors, 1 warning

Oracle Community | 807549 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error in running JSP files

    Oracle Community | 1 decade ago | 807549
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:56: Class org.apache.jsp.DBSession not found. DBSession sess = null; ^ An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:59: Class org.apache.jsp.DBSession not found. sess= (DBSession) ^ An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:64: Class org.apache.jsp.DBSession not found. sess = (DBSession) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DBSession"); ^ 3 errors, 1 warning
  2. 0

    Beans, Servlets - Problem with class path??? - Desparate!!

    Oracle Community | 1 decade ago | 843835
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 6 in the jsp file: /currentTime.jsp Generated servlet error: C:\tomcat\work\localhost\chapter10\currentTime$jsp.java:63: Class org.apache.jsp.TimeTag not found. TimeTag jspx th_example_time_0 = new TimeTag(); ^ An error occurred at line: 6 in the jsp file: /currentTime.jsp Generated servlet error: C:\tomcat\work\localhost\chapter10\currentTime$jsp.java:63: Class org.apache.jsp.TimeTag not found. TimeTag jspx th_example_time_0 = new TimeTag(); ^ 2 errors, 1 warning
  3. 0

    org.apache.jasper.JasperException

    Oracle Community | 1 decade ago | 843835
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:\jakarta-tomcat-4.0.1\work\localhost\javaAssign2\LoginController$jsp.java:5: Class User not found in import. import User; ^ C:\jakarta-tomcat-4.0.1\work\localhost\javaAssign2\LoginController$jsp.java:6: Class UserDatabase not found in import. import UserDatabase; ^ An error occured between lines: 81 and 84 in the jsp file: /LoginController.jsp Generated servlet error: C:\jakarta-tomcat-4.0.1\work\localhost\javaAssign2\LoginController$jsp.java:145: 'try' without 'catch' or 'finally'. out.write("\r\r\r"); ^ C:\jakarta-tomcat-4.0.1\work\localhost\javaAssign2\LoginController$jsp.java:149: Type expected. } catch (Throwable t) { ^ 4 errors, 1 warning
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with set value function in HttpSession

    Oracle Community | 1 decade ago | 843836
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occured between lines: 5 and 13 in the jsp file: /vin/test/logincheck.jsp Generated servlet error: D:\jakarta-tomcat-4.0.1\work\localhost\_\vin\test\logincheck$jsp.java:63: Method setValue(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpSession. ses.setValue("s1","myname"); ^ 1 error, 1 warning
  6. 0

    Problem with setValue function in HttpSession

    Oracle Community | 1 decade ago | 843836
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occured between lines: 5 and 13 in the jsp file: /vin/test/logincheck.jsp Generated servlet error: D:\jakarta-tomcat-4.0.1\work\localhost\_\vin\test\logincheck$jsp.java:63: Method setValue(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpSession. ses.setValue("s1","myname"); ^ 1 error, 1 warning
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 JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:56: Class org.apache.jsp.DBSession not found. DBSession sess = null; ^ An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:59: Class org.apache.jsp.DBSession not found. sess= (DBSession) ^ An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp Generated servlet error: C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:64: Class org.apache.jsp.DBSession not found. sess = (DBSession) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DBSession"); ^ 3 errors, 1 warning

    at org.apache.jasper.compiler.Compiler.compile()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    2. org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
    3. org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
    4. org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
    5. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
    6. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
    6 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:243)
    4. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    6. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
    8. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    9. org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    10. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    11. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    12. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    13. org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
    14. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    15. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    16. org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    17. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    18. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    19. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    20. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
    21. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    22. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    23. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    24. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    25. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    26. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    27. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    27 frames
  5. org.apache.catalina
    HttpProcessor.run
    1. org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    2. org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    2 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:536)
    1 frame