3 Replies Latest reply on Nov 9, 2004 5:03 PM by david.wade

    [JBOSS][Database]

    cosmos38240

      Hi,

      I run jboss by eclipse 3.0.

      After that i launch : http://localhost:8080/jmx-console/index.jsp
      I get my hypersonic database gooooddd :)

      But when i click on it i get this error :

      HTTP Status 500 -
      
      --------------------------------------------------------------------------------
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      org.apache.jasper.JasperException: Impossible de compiler la classe pour la 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.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:183)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:75)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:56)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       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.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:183)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:75)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:56)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      
      



      If i start jboss by MSdos command no problem. i could go to my database ...

      Any idea ?????

      Thank you

        • 1. Re: [JBOSS][Database]
          robisz

           

          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


          I can't imagine what database are you talking about...
          Set JAVA_HOME it is required to compile JSPs.

          robisz

          • 2. Re: [JBOSS][Database]
            cosmos38240

            sorry it's a local database the service name is hypersonic but i like too much this word.

            I have set up my class path because if i launch it on msdos it works well.


            Thank you

            • 3. Re: [JBOSS][Database]
              david.wade

              You are probably running eclipse on the JRE rather than the JDK. Ensure when you configure JBoss 4 in JBoss IDE that you set the JDK correctly.