2 Replies Latest reply on Jul 9, 2010 9:53 AM by ed.larkin

    How does mod_cluster know its context(URI)

    ed.larkin

      Hello All, I am having a problem with my setup, currently I am using a testing setup, 2 jboss 4.2 servers with mod_cluster web(I used the quick start guide) and so far this seems to work on jboss:

       

      [ModClusterService] Initializing mod_cluster 1.1.0.CR3
      11:12:20,047 INFO  [AdvertiseListenerImpl] Listening to proxy advertisements on 224.0.1.105:23364
      11:12:20,283 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      11:12:20,284 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
      11:12:20,284 INFO  [Catalina] Initialization processed in 626 ms
      11:12:20,285 INFO  [StandardService] Starting service jboss.web
      and a single apache setup:

       

      <IfModule ssl_module>

      SSLRandomSeed startup builtin

      SSLRandomSeed connect builtin

      </IfModule>

      # MOD_CLUSTER_ADDS

      # Adjust to you hostname and subnet.

      <IfModule manager_module>

        Listen 192.168.116.200:9192

        ManagerBalancerName mycluster

        <VirtualHost 192.168.116.200:9192>

          <Directory />

           Order deny,allow

           Deny from all

           Allow from all

          </Directory>

       

          KeepAliveTimeout 300

          MaxKeepAliveRequests 0

          #ServerAdvertise on http://@IP@:6666

          AdvertiseFrequency 5

          #AdvertiseSecurityKey secret

          #AdvertiseGroup @ADVIP@:23364

       

          <Location /mod_cluster_manager>

             SetHandler mod_cluster-manager

             Order deny,allow

             Deny from all

             Allow from all

          </Location>

       

        </VirtualHost>

      </IfModule>

       

      When I start my jboss servers up I see the above output on the log file then I see:

      192.168.116.209 - - [07/Jul/2010:11:06:08 -0400] "INFO / HTTP/1.0" 200 -

      192.168.116.208 - - [07/Jul/2010:11:08:30 -0400] "INFO / HTTP/1.0" 200 -

      in the access logs of apache

       

      I am trying to get to http://myserver:9192/test/ This works just fine if I setup a proxypass direct, but mod_cluster dont seem to know what context it needs

       

      Can anyone shed some light on this, or point me in a explicit direction that i can get the correct information.

       

      Thanks!!

      Ed

       

        • 1. Re: How does mod_cluster know its context(URI)
          jfclere

          I am trying to get to http://myserver:9192/test/ This works just  fine if I setup a proxypass direct, but mod_cluster dont seem to know  what context it needs

          Why do you think you need a ProxyPass?

          • 2. Re: How does mod_cluster know its context(URI)
            ed.larkin

            I know I dont need proxypass, I just used it to test the application and the communication between jboss and apache.

             

            Proxypass worked, but with mod cluster I assume that mod_advertise works directly with the jar file installed in Jboss, then the jar file installed in jboss is the app that watches for all contexts that are deployed and then sends that information to apache for the dynamic config.

             

            if my assumption is correct above then there may be something wrong on the jboss side because the contexts are never getting configured in apache?