4 Replies Latest reply on May 12, 2008 11:44 AM by Mladen Turk

    jboss 4.0.2 + cluster is not working

    naina sharma Newbie

      Hi all
      I am new to jboss clustering.I am using jboss 4.0.2 ,JDK 1.5.
      .There are two machine in clusters .When i say run -c all,clusters can see each other.I have set all the things according to jboss manual.But now my requet are not forwarded to other node in the cluster.Please tell me how to check it.Apache running fine on 80 port .So when i say http://localhost/jmx-console .Its saying page not found.Please help me out.Thanx in advance.

        • 1. jboss 4.0.2 + cluster is not working
          naina sharma Newbie

          Hii All
          Please help me .I am not able to see the apache_home/log/mod_jk.log.But when i say http://localhost/web-console , Http page not found comes. But in error.log i can see
          File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/WEB_CONSOLE

          My uriworkers.property file is

          # Simple worker configuration file
          
          # Mount the Servlet context to the ajp13 worker
          /jmx-console=loadbalancer
          /jmx-console/*=loadbalancer
          /web-console=loadbalancer
          /web-console/*=loadbalancer
          



          my workers.property file is

          
          # Define list of workers that will be used
          # for mapping requests
          # The configuration directives are valid
          # for the mod_jk version 1.2.18 and later
          #
          worker.list=loadbalancer,status
          
          # Define Node1
          # modify the host as your host IP or DNS name.
          worker.node1.port=8009
          worker.node1.host=192.168.81.14
          worker.node1.type=ajp13
          worker.node1.lbfactor=1
          # worker.node1.connection_pool_size=10 (1)
          
          # Define Node2
          # modify the host as your host IP or DNS name.
          worker.node2.port=8009
          worker.node2.host=192.168.81.29
          worker.node2.type=ajp13
          worker.node2.lbfactor=1
          # worker.node1.connection_pool_size=10 (1)
          
          # Load-balancing behaviour
          worker.loadbalancer.type=lb
          worker.loadbalancer.balance_workers=node1,node2
          
          # Status worker for managing load balancer
          worker.status.type=status
          
          
          



          my mod-jk.conf i s


          
          # Load mod_jk module
          # Specify the filename of the mod_jk lib
          LoadModule jk_module modules/mod_jk.so
          
          # Where to find workers.properties
          JkWorkersFile conf/workers.properties
          
          # Where to put jk logs
          JkLogFile logs/mod_jk.log
          
          # Set the jk log level [debug/error/info]
          JkLogLevel info
          
          # Select the log format
          JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
          
          # JkOptions indicates to send SSK KEY SIZE
          # Note: Changed from +ForwardURICompat.
          # See http://tomcat.apache.org/security-jk.html
          JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
          
          # JkRequestLogFormat
          JkRequestLogFormat "%w %V %T"
          
          # Mount your applications
          JkMount /EILMT/* loadbalancer
          
          # You can use external file for mount points.
          # It will be checked for updates each 60 seconds.
          # The format of the file is: /url=worker
          # /examples/*=loadbalancer
          JkMountFile conf/uriworkermap.properties
          
          # Add shared memory.
          # This directive is present with 1.2.10 and
          # later versions of mod_jk, and is needed for
          # for load balancing to work properly
          # Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to
          # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452
          JkShmFile run/jk.shm
          
          # Add jkstatus for managing runtime data
          <Location /jkstatus/>
          JkMount status
          Order deny,allow
          Deny from all
          Allow from 127.0.0.1
          </Location>
          



          And i hav made changes to server.xml and jboss-service.xml

          Pleastell me what shud i do.

          • 2. Re: jboss 4.0.2 + cluster is not working
            naina sharma Newbie

            The problem is with vista.Mod_jk i snot working with vista.When i tried it on windows 2000 .Its saying mod-jk initialized.But http://localhost/jmx-console is saying same thing httpdocs/jmx-console not found.Please help me out.

            • 3. Re: jboss 4.0.2 + cluster is not working
              naina sharma Newbie

              Hey
              is anybdy there listening to my problem?Please help me .Its realy urgent and important.Please reply me.

              • 4. Re: jboss 4.0.2 + cluster is not working
                Mladen Turk Newbie

                IIUC you are running Httpd on Vista. Correct?
                How do you run Apache Httpd, as service or via cmd.exe?
                If you are running it as a service try via console and see if it works. There are some problems with httpd and Vista security.