4 Replies Latest reply on May 21, 2003 7:46 PM by Dionatan de Almeida

    JBoss + Apache Connection

    ManuKits Newbie

      Hi JBosses,

      I am using Apache 1.3.26 + Jboss 3.0.0 (bundled with Tomcat 4.0.4) on UNIX Platform.

      I want to CONNECT Apache(for static pages) with JBoss (for dynamic pages) and wondering how to do that?

      I have mod_jk.so file and have made following cofigurations:

      HTTPD.CONF
      LoadModule jk_module libexec/mod_jk.so
      JkWorkersFile /jboss/catalina/conf/jk/workers.properties
      JkLogFile /usr/local/apache1326/logs/mod_jk.log
      JkLogLevel info

      JKMount /examples/servlet/* ajp13
      JKMount /examples/*.jsp ajp13
      JKMount /mig/servlet/* ajp13
      JKMount /mig/*.jsp ajp13

      Alias /mig/ "/jboss/server/default/deploy/"
      <Directory "/jboss/server/default/deploy/">
      Options Indexes FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all


      WORKERS.PROPERTIES
      workers.tomcat_home=/jboss/catalina
      workers.java_home=/usr/java130
      ps=/

      worker.list=ajp12, ajp13, ajp14
      worker.ajp13.port=8009
      worker.ajp13.host=my.host.name
      worker.ajp13.type=ajp13

      My WAR file (mig.war) is placed in /jboss/server/default/deploy directory

      What other configuration do I need to make...?

      Do I need to start Apache first and then JBoss OR
      should I start JBoss first and then Apache?

      THANKS!

        • 1. Re: JBoss + Apache Connection
          ManuKits Newbie

          I checked the mod_jk.log file and found following...
          --------------------------------------------------------------------
          [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
          [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/mig/'
          [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->/mig/
          [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
          [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/mig/'
          [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->/mig/
          [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
          [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/migration/test.jsp'
          [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (558)]:jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->*.jsp

          ---------------------------------------------------------------------

          From the LOG file above it seems that INTEGRATION is successful.... BUT when I access http://MY.IP.ADDR.ESS/mig/test.jsp it shows FOLLOWING ERROR on BROWSER:--
          -----------------------------------------------------------------
          Forbidden
          You don't have permission to access /mig/test.jsp on this server

          -------------------------------------------------------------------

          Any guideline on this is appreciated!

          • 2. Re: JBoss + Apache Connection
            ManuKits Newbie

            I checked the mod_jk.log file and found following...
            --------------------------------------------------------------------
            [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
            [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/mig/'
            [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->/mig/
            [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
            [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/mig/'
            [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->/mig/
            [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
            [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/migration/test.jsp'
            [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (558)]:jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->*.jsp

            ---------------------------------------------------------------------

            From the LOG file above it seems that INTEGRATION is successful.... BUT when I access http://MY.IP.ADDR.ESS/mig/test.jsp it shows FOLLOWING ERROR on BROWSER:--
            -----------------------------------------------------------------
            Forbidden
            You don't have permission to access /mig/test.jsp on this server

            -------------------------------------------------------------------

            Any guideline on this is appreciated!

            • 3. Re: JBoss + Apache Connection
              ManuKits Newbie

              I checked the mod_jk.log file and found following...
              --------------------------------------------------------------------
              [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
              [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/mig/'
              [Fri Feb 14 09:44:47 2003] [jk_uri_worker_map.c (502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->/mig/
              [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
              [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/mig/'
              [Fri Feb 14 09:44:51 2003] [jk_uri_worker_map.c (502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->/mig/
              [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
              [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/migration/test.jsp'
              [Fri Feb 14 09:52:43 2003] [jk_uri_worker_map.c (558)]:jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->*.jsp

              ---------------------------------------------------------------------

              From the LOG file above it seems that INTEGRATION is successful.... BUT when I access http://MY.IP.ADDR.ESS/mig/test.jsp it shows FOLLOWING ERROR on BROWSER:--
              -----------------------------------------------------------------
              Forbidden
              You don't have permission to access /mig/test.jsp on this server

              -------------------------------------------------------------------

              Any guideline on this is appreciated!

              • 4. Re: JBoss + Apache Connection
                Dionatan de Almeida Newbie

                You must check if the
                User and
                Group
                configured in httpd.conf has read access to the directory where your jsps are.