0 Replies Latest reply on Mar 17, 2003 11:06 AM by cummings

    JasperException: Unable to compile class for JSP

    cummings

      Hello -

      When I try to access jmx-console/index.jsp I get the error below.

      I'm running JBoss 3.0.4 with Tomcat on RedHat Linux 8.0, Sun JDKSE 1.4.1, J2EE SDK 1.3.1. I've included the main environment variables set in jboss_init_redhat.sh.

      The file "/usr/local/jboss-3.0.4_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/jmx-console/index_jsp.java" exists and looks ok.

      Any suggestions greatly appreciated!

      Charles

      ========================================
      ======== environment variables ========
      ========================================

      JBOSS_HOME="/usr/local/jboss-3.0.4_tomcat-4.1.12"

      JBOSS_CLASSPATH="$JBOSS_HOME/bin/run.jar;$JAVA_HOME/lib/tools.jar;$JBOSS_HOME/server/default/lib/xalan.jar;$JBOSS_HOME/server/default/lib/javax.servlet.jar;$JBOSS_HOME/server/default/lib/org.apache.jasper.jar"

      JAVAPTH="/usr/local/j2sdk1.4.1_02/bin"

      JBOSSCP="$JBOSS_HOME/bin/shutdown.jar"

      JBOSSSH="$JBOSS_HOME/bin/run.sh"

      ========================================
      ======== Output from server.log ========
      ========================================
      2003-03-17 05:14:53,218 INFO [STDOUT] [javac]
      2003-03-17 05:14:53,224 INFO [STDOUT] Modern compiler is not available - using classic compiler
      2003-03-17 05:14:53,251 INFO [STDOUT] [javac]
      2003-03-17 05:14:53,256 INFO [STDOUT] Compiling 1 source file
      2003-03-17 05:14:56,412 INFO [org.jboss.web.localhost.Engine] Error compiling file: /usr/local/jboss-3.0.4_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/jmx-console/index_jsp.java

      2003-03-17 05:14:56,851 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: -1 in the jsp file: null

      Generated servlet error:
      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)