1 Reply Latest reply on Nov 1, 2004 10:44 AM by luc.texier

    "No Java compiler was found..." error

    omkaram


      Hi All,

      I started JBoss 4.0.0DR4 with JAVA_HOME set to JDK5.0.

      I got the following exception when I requested http://localhost:8080/jmx-console. Please see it and help me get out of this.

      *************************************STARTS HERE*********************
      org.apache.jasper.JasperException: Unable to compile class for JSP

      No Java compiler was found to compile the generated source for the JSP.
      This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
      to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
      If using an alternate Java compiler, please check its installation and access path.

      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
      org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

      note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.
      Apache Tomcat/5.0.25

      *************************************ENDS HERE*********************


      Bye
      Sreedhar

        • 1. Re:
          luc.texier

          The exception is self-explanatory. The JSP pages can not be compiled
          Your environment variable is pointing to the JRE which doesn't provide javac.
          You can either copy the tools.jar lib as suggested or point to the full SDK.

          BTW, JBoss AS 4.0 final has been release a while ago. Get the latest
          http://www.jboss.org/downloads/index#jb4