3 Replies Latest reply on Jul 31, 2008 3:36 AM by Rich Klapouchy

    Apache2 + JBoss 4.2.2 + mod_jk

    Rich Klapouchy Newbie

      I'm trying to setup Apache2 forwarding to Jboss using the wiki page: http://wiki.jboss.org/wiki/UsingMod_jk1.2WithJBoss

      But it fails, during restarting apache I'm getting:

      Syntax error on line 5 of /etc/apache2/conf.d/uriworkermap.properties:
      Invalid command '/jmx-console=worker1', perhaps misspelled or defined by a module not included in the server configuration
      


      I'm on Ubuntu Servwer 8.04

      my workers.properties:
      worker.list=worker1
      worker.worker1.type=ajp13
      worker.worker1.host=localhost
      worker.worker1.port=8009
      


      and the uriworkermap.properties:

      /jmx-console=worker1
      /jmx-console/*=worker1
      /web-console=worker1
      /web-console/*=worker1
      


      any ideas how to solve this problem ?

        • 1. Re: Apache2 + JBoss 4.2.2 + mod_jk
          Gabe Newbie

          Ditch mod_jk and use mod_proxy instead.
          1)edit
          /etc/apache2/mods-enabled/proxy.conf
          and insert
          Allow from all

          2)proxy like so:
          <VirtualHost xxx.xxx.xxx.xxx:80>
          ServerAlias domain.com
          ServerName domain.com
          ProxyPass / ajp://127.0.0.1:8009/
          ProxyPassReverse / ajp://127.0.0.1:8009/
          ProxyPreserveHost On

          • 2. Re: Apache2 + JBoss 4.2.2 + mod_jk
            Rich Klapouchy Newbie

             

            "gabewong" wrote:
            Ditch mod_jk and use mod_proxy instead.


            I'm using mod_proxy_ajp now, but I#d like to have a performance comparision between mod_jk and mod_proxy_ajp

            • 3. Re: Apache2 + JBoss 4.2.2 + mod_jk
              Rich Klapouchy Newbie

              For now mod_jk starts but it deosn't work properly

              My mod_jk.conf:

              LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
              JkWorkersFile /etc/apache2/conf.d/workers.properties
              JkShmFile /var/log/apache2/mod_jk.shm
              JkLogFile /var/log/apache2/mod_jk.log
              JkLogLevel debug
              JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
              JkRequestLogFormat "%w %V %T"
              JkMountFile /etc/apache2/conf.d/uriworkermap.properties
              JkMount /web-console/* worker1
              JkMount /jmx-console/* worker1
              


              My workers.properties:
              worker.list=worker1
              worker.worker1.type=ajp13
              worker.worker1.host=127.0.0.1
              worker.worker1.port=8009
              


              my uriworkermap.properties:
              /jmx-console=worker1
              /jmx-console/*=worker1
              /web-console=worker1
              /web-console/*=worker1
              



              but my mod_jk log means:

              missing uri map for jbossvm.localdomain:/jmx-console/