1 Reply Latest reply on Jan 31, 2004 4:33 PM by jonlee

    Getting Started...

    seanmctex

      I'm beginning to work through the Getting Started manual, using WinXP, Java 1.4 EE, and JBoss 3.2.3. When I tried to view the JMX Console at http://localhost:8080/jmx-console/ after having started JBoss up, I get the following:

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      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:
      [javac] Compiling 1 source file



      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
      ....

      and on and on. The JBoss server seemed to start up ok, and I'm new enough at this to not have much idea of what to do with the error message. :-P


      Thanks in advance for any advice,

      Sean

        • 1. Re: Getting Started...
          jonlee

          Did you set JAVA_HOME to point to your JDK root directory? The JSP engine (Jasper) requires the tools.jar to compile JSPs into Java class files, and Jboss needs to have the location of a JDK. This is most likely the reason you are not compiling (generating) the JSP.

          Typically, your startup output will contain something like the following if JAVA_HOME is correctly configured.
          ================================================================================
          JBoss Bootstrap Environment

          JBOSS_HOME: /usr/local/JBoss

          JAVA: /usr/local/lib/java/bin/java

          JAVA_OPTS: -Xms64m -Xmx128m -Djava.awt.headless=true -Djava.io.tmpdir=/jetty -Dprogram.name=run.sh

          CLASSPATH: /usr/local/JBoss/bin/run.jar:/usr/local/lib/java/lib/tools.jar

          ================================================================================

          Note that the CLASSPATH should locate files that do exist. In my example, the JDK home directory (JAVA_HOME) is /usr/local/java.

          Get the free or paid-for JBoss documentation for more information on configuration but hopefully this will get you a start.

          If you are still having problems, post some information on your JDK and the output fragment as shown here.