2 Replies Latest reply on Apr 20, 2005 9:38 AM by spoons84

    Newbie JAVA_HOME problem

    spoons84

      Ive just installed JBoss and am having problems getting it to work...

      I load the Jboss server which seems to work ok. At the start it does say 'JAVA_HOME is not set. Unexpected results may occur. Set JAVA_HOME to the directory of your local JDK to avoid this message.'
      Though I'm not sure how relevant this is....

      Going into another shell I've typed:

      set JAVA_HOME=C:\Sun\AppServer\jdk
      set JBOSS_HOME=C:\jboss
      set PATH=..\ant\bin;%PATH%

      No errors occur here, but when I go to localhost:8080/jmx-console/ I get the following and im not too sure what ive done wrong. Thanks in advance for any help..

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

      exception
      org.apache.jasper.JasperException: Unable to compile class for JSP
      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
      org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
      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)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

      root cause
      Unable to find a javac compiler;
      com.sun.tools.javac.Main is not on the classpath.
      Perhaps JAVA_HOME does not point to the JDK
      org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
      org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
      org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
      org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
      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)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

        • 1. Re: Newbie JAVA_HOME problem
          theute

          If you set JAVA_HOME in another shell it won't be seen by the environment, you need to type what you typed in the *same* shell *before* you launch JBoss

          Or set it up as an environment variable.

          • 2. Re: Newbie JAVA_HOME problem
            spoons84

            Cheers for the quick reply,

            Once it has initialised it doesnt I cant type anything....is there a way to change the configuration files to point towards the java package?