org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP

Oracle Community | 807573 | 1 decade ago
  1. 0

    IS Server console not starting on Solaris 9

    Oracle Community | 1 decade ago | 807573
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP
  2. 0

    HTTP500 error when loading jsp in SunOne (iPlanet) 6.1 SP2

    Oracle Community | 1 decade ago | 807567
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP /opt/SunWebSrv/https-webinstance/ClassCache/https-webinstance/_jsps/_tree/_www_treeview_jsp.java:8: 'class' or 'interface' expected import javax.servlet.*; ^ /opt/SunWebSrv/https-webinstance/ClassCache/https-webinstance/_jsps/_tree/_www_treeview_jsp.java:9: 'class' or 'interface' expected import javax.servlet.http.*; ^ /opt/SunWebSrv/https-webinstance/ClassCache/https-webinstance/_jsps/_tree/_www_treeview_jsp.java:10: 'class' or 'interface' expected import javax.servlet.jsp.*; ^ /opt/SunWebSrv/https-webinstance/ClassCache/https-webinstance/_jsps/_tree/_www_treeview_jsp.java:11: 'class' or 'interface' expected import org.apache.jasper.runtime.*; ^ 4 errors
  3. 0

    ClassCache pages not compiling with SunOne 6.1

    Oracle Community | 1 decade ago | 807567
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP /opt/SunWebSrv/https-webapplication/ClassCache/https-webapplication/_jsps/_www_treeview_jsp.java:8: 'class' or 'interface' expected import javax.servlet.*; ^ /opt/SunWebSrv/https-webapplication/ClassCache/https-webapplication/_jsps/_www_treeview_jsp.java:9: 'class' or 'interface' expected import javax.servlet.http.*; ^ /opt/SunWebSrv/https-webapplication/ClassCache/https-webapplication/_jsps/_www_treeview_jsp.java:10: 'class' or 'interface' expected import javax.servlet.jsp.*; ^ /opt/SunWebSrv/https-webapplication/ClassCache/https-webapplication/_jsps/_www_treeview_jsp.java:11: 'class' or 'interface' expected import org.apache.jasper.runtime.*; ^ 4 errors
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    javax properties and SunOne 6.1

    Oracle Community | 1 decade ago | 807567
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP /opt/Webserver/https-application/ClassCache/https-application/_jsps/_frame/_app_frameview_jsp.java:8: 'class' or 'interface' expected import javax.servlet.*; ^ /opt/Webserver/https-application/ClassCache/https-application/_jsps/_frame/_app_frameview_jsp.java:9: 'class' or 'interface' expected import javax.servlet.http.*; ^ /opt/Webserver/https-application/ClassCache/https-application/_jsps/_frame/_app_frameview_jsp.java:10: 'class' or 'interface' expected import javax.servlet.jsp.*; ^ /opt/Webserver/https-application/ClassCache/https-application/_jsps/_frame/_app_frameview_jsp.java:11: 'class' or 'interface' expected import org.apache.jasper.runtime.*; ^ 4 errors
  6. 0

    Interesting

    Oracle Community | 1 decade ago | 807596
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred between lines: 187 and 189 in the JSP file: /thread-flat.jsp Generated servlet error: /var/opt/SUNWappserver7/domains/software/javaforums/generated/jsp/j2ee-modules/java/_jasper/_thread_0002dflat_jsp.java:594: Undefined variable or class name: rewardManager int points = rewardManager.getPoints(thread); ^ An error occurred between lines: 189 and 190 in the JSP file: /thread-flat.jsp Generated servlet error: /var/opt/SUNWappserver7/domains/software/javaforums/generated/jsp/j2ee-modules/java/_jasper/_thread_0002dflat_jsp.java:597: Undefined variable or class name: rewardManager int pointsRewarded = rewardManager.getPointsRewarded(thread); ^ An error occurred at line: 70 in the JSP file: /thread-messagebox.jsp Generated servlet error: /var/opt/SUNWappserver7/domains/software/javaforums/generated/jsp/j2ee-modules/java/_jasper/_thread_0002dflat_jsp.java:1615: Undefined variable or class name: rewardManager int pointsForThread = rewardManager.getPoints(thread); ^ 3 errors, 1 warning

    1 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

      WEB4000: Unable to compile class for JSP

      at org.apache.jasper.compiler.Compiler.compile()
    2. GWT dev
      Compiler.compile
      1. org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
      1 frame
    3. com.iplanet.ias
      JspServlet.service
      1. com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:756)
      2. com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:616)
      3. com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:401)
      4. com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
      4 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
      1 frame
    5. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:770)
      2. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:471)
      3. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382)
      3 frames
    6. com.iplanet.jato
      ViewBeanBase.forwardTo
      1. com.iplanet.jato.view.ViewBeanBase.forward(ViewBeanBase.java:346)
      2. com.iplanet.jato.view.ViewBeanBase.forwardTo(ViewBeanBase.java:267)
      2 frames
    7. com.iplanet.am
      ConsoleServletBase.onBeforeRequest
      1. com.iplanet.am.console.base.ConsoleServletBase.browserRedirect(ConsoleServletBase.java:262)
      2. com.iplanet.am.console.base.ConsoleServletBase.validateSSOToken(ConsoleServletBase.java:246)
      3. com.iplanet.am.console.base.ConsoleServletBase.onBeforeRequest(ConsoleServletBase.java:201)
      3 frames
    8. com.iplanet.jato
      ApplicationServletBase.doGet
      1. com.iplanet.jato.ApplicationServletBase.fireBeforeRequestEvent(ApplicationServletBase.java:964)
      2. com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:422)
      3. com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
      4. com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)
      4 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
      2 frames
    10. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
      3. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
      7. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
      7 frames
    11. com.iplanet.ias
      WebContainer.service
      1. com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
      2. com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
      2 frames