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] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\juddi\happyjuddi_jsp.java:7: cannot access java.io.File bad class file: C:\j2sdk1.4.1_06\jre\lib\rt.jar(java/io/File.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import java.io.File; ^ 1 error

ws-juddi-user | Ilias Stergiou | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: Search for services by using the categories

    ws-juddi-user | 1 decade ago | Ilias Stergiou
    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] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\juddi\happyjuddi_jsp.java:7: cannot access java.io.File bad class file: C:\j2sdk1.4.1_06\jre\lib\rt.jar(java/io/File.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import java.io.File; ^ 1 error
  2. 0

    Unable to compile class for JSP

    Coderanch | 1 decade ago | Michael Brewer
    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] Compiling 1 source file
  3. 0

    How to get session variable in ajax request page?

    Stack Overflow | 5 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to compile class for JSP

    theserverside.com | 1 year ago
    org.apache.jasper.JasperException: Unable to compile class for JSP
  6. 0

    Newbie JDBC + JSP

    Google Groups | 1 decade ago | Alex Schatten
    org.apache.jasper.JasperException
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] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\juddi\happyjuddi_jsp.java:7: cannot access java.io.File bad class file: C:\j2sdk1.4.1_06\jre\lib\rt.jar(java/io/File.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import java.io.File; ^ 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:2416)
    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:601)
    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:536)
    1 frame