4 Replies Latest reply on Mar 2, 2008 11:47 AM by brian.stansberry

    Using mod_jk in AS 4.2.1.GA

    rekie

      Hi all,

      I am trying to build a cluster using IIS 6.0 and JBoss AS 4.2.1.GA. I read the clustering guides for 4.2.x and 5.0 beta (which are allmost the same) as well as the relevant wikipages.


      In all documents I find to tell JBoss to use mod_jk to edit a specific jboss-service.xml

      Edit the
      JBOSS_HOME/server/all/deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.
      xml file (replace /all with your own server name). Locate the
      <attribute> element with a name of UseJK, and set its value to true:


      Unfortunately in JBoss 4.2.1.GA ther is no jbossweb-tomcat50.sar, and so of course no jboss-service.xml.

      Am I missing something??? Did I not look close enough? Or is there an other way to tell JBoss to make use of mod_jk?

      Thank you
      Reinhard

        • 1. Re: Using mod_jk in AS 4.2.1.GA
          rekie

          OK...

          after taking a closer look at ALL jboss-service.xml files in the deploy folder I found one with the element UseJK.

          It is in the JBOSS_HOME/server/all/deploy/jboss-web.deployer/META-INF directory.

          Hopefully this is what I am looking for. Maybe this coud be updatet in the clusterguides, if this realy is the correct place.

          THX
          Reinhard

          • 2. Re: Using mod_jk in AS 4.2.1.GA
            brian.stansberry

            Thanks for the report. :) This has been fixed in the latest 4.2.2 Clustering Guide:

            http://labs.jboss.com/file-access/default/members/jbossas/freezone/docs/Clustering_Guide/beta422/html/clustering-http-jboss.html

            I'm sure it's still wrong in the latest AS 5 docs, as those haven't been updated yet, pending further development work.

            • 3. Re: Using mod_jk in AS 4.2.1.GA
              waynebaylor

              I'm trying to set up mod_jk on JBoss AS 5.0.0 Beta4 and cannot find any reference to "UseJK" in any config files.

              The jbossweb.deployer is under the deployers directory now, and doesn't have a jboss-service.xml in META-INF.

              I looked at UsingMod_jk1.2WithJBoss on the wiki, but that's outdated too.

              Is there current documentation for AS 5.x?

              • 4. Re: Using mod_jk in AS 4.2.1.GA
                brian.stansberry

                No, there's no documentation on 5.0 yet.

                If you add a jvmRoute in server.xml, the server will assume "UseJK" is true as global default. So, typically no need to set it.

                The global default can be overridden on a per-webapp basis in jboss-web.xml:

                <replication-config>
                 <use-jk>false</use-jk>
                </replication-config>
                


                You can also force the setting of the global default rather than relying on the presence/absence of a jvmRoute. Uncomment the following in server/all/deployers/jbossweb.deployer/META-INF/wer-deployers-beans.xml's WebAppClusteringDefaultsDeployer:

                <!--
                 <property name="useJK">false</property>
                -->