4 Replies Latest reply on Nov 11, 2004 7:14 PM by Long Nguyen

    How to intergrate Tomcat 5 with JBoss 4.0

    Long Nguyen Newbie

      hi,

      Firstly, I am absolute beginner in JBoss.

      Does the Jboss 4 come with Tomcat 5 ? And if so, could anyone please to me how to integrate them together ?

      Thank you very much in advance.


      ngoclongy2k

        • 1. Re: How to intergrate Tomcat 5 with JBoss 4.0
          Darran Lofthouse Master

          JBoss 4 does come with Tomcat 5 and they are already integrated.

          • 2. Re: How to intergrate Tomcat 5 with JBoss 4.0
            Long Nguyen Newbie

            hi,

            Thanks for your reply.

            But then why I received error like this when going to the web console:

            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
            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)


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


            Could anyone please help me to solve it ? Do I need to set any classpath or any new environment variables in Windows XP ?

            Thank you very much


            ngoclongy2k

            • 3. Re: How to intergrate Tomcat 5 with JBoss 4.0
              Darran Lofthouse Master

               

              Perhaps JAVA_HOME does not point to the JDK


              Have you set the JAVA_HOME environment variable to point to your JDK installation?

              • 4. Re: How to intergrate Tomcat 5 with JBoss 4.0
                Long Nguyen Newbie

                Thank you very much, darranl.
                Now everything is working well.


                ngoclongy2k