3 Replies Latest reply: May 10, 2012 2:23 AM by Jean-Frederic Clere RSS

Problem with JBoss EAP 5.1.2 + Apache HTTPD 2.2.15 + mod_cluster1.2

Luis Martín Cubas Newbie

Greetings to all the community.


I want to try a cluster with two nodes of JBoss EAP 5.1.2 + Apache HTTPD 2.2.15 + mod_cluster 1.2. For starters I have in my Apache httpd.conf file the sgte configuration:

 

LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_cluster_module modules/mod_proxy_cluster.so

LoadModule slotmem_module modules/mod_slotmem.so

LoadModule manager_module modules/mod_manager.so

LoadModule advertise_module modules/mod_advertise.so

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so


Listen 192.168.100.28:8000
MemManagerFile / var / cache / httpd
<VirtualHost 192.168.100.28:8000>
<Directory />
Order deny, allow
Deny from all
Allow from 192.168.100.
</ Directory>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName mycluster
AdvertiseFrequency 5
</ VirtualHost>

<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny, allow
Deny from all
Allow from 192.168.100.28
</ Location>

Then I added the lines of server.xml file in the folder jbossweb.sar

ClassName="org.jboss.web.tomcat.service.deployers.MicrocontainerIntegrationLifecycleListener" <Listener delegateBeanName="HAModClusterService"/>
Name="jboss.web" <Engine defaultHost="localhost" jvmRoute="jbcluster1">

Then I added the lines of jboss-beans.xml file in the folder jbossweb.sar / META-INF

<depends> HAModClusterService </ depends>

Then I modified the file of lines mod-cluster-jboss-beans.xml in the folder mod-cluster.sar/META-INF

  
<property name="proxyList"> 192.168.100.28:8000 </ property>
  
<property name="domain"> $ {jboss.Domain: DefaultDomain} </ property>

After these settings get up the two instances

First instance: jbcluster1 (copy of all instance) in the PC 192.168.100.28

 

. / run.sh -c jbcluster1 -g PartitionA -u 224.0.0.0 -b 192.168.100.28 -Djboss.Domain=A -Djboss.messaging.ServerPeerID=1 

 

Second instance: jbcluster2 (copy of all instance) in the PC 192.168.100.228. The same configuration in the server.xml file, jboss-beans.xml and mod-cluster-jboss-beans.xml, but in server.xml I put Name="jboss.web" <Engine defaultHost="localhost" jvmRoute="jbcluster2">

 

.. / run.sh -c jbcluster2 -g PartitionA -u 224.0.0.0 -b 192.168.100.228 -Djboss.Domain=A -Djboss.messaging.ServerPeerID=2 

 

The application I developed called "ejemplo.war". Upon entering the browser:192.168.100.28/ejemplo .... I have access (apache.jpg)

 

The problem is that I get the following error:

 

in log for 192.168.100.28:

 

2012-05-08 14:44:00,955 INFO  [org.apache.coyote.ajp.AjpAprProtocol] (main) Arrancando Coyote AJP/1.3 en ajp-192.168.100.28-8009

2012-05-08 14:44:00,968 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201111102209)] Started in 51s:130ms

2012-05-08 14:47:54,349 INFO  [org.jboss.ha.framework.interfaces.HAPartition.lifecycle.PartitionA] (Incoming-4,192.168.100.28:55200) New cluster view for partition PartitionA (id: 1, delta: 1) : [192.168.100.28:1099, 192.168.100.228:1099]

2012-05-08 14:47:54,360 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.PartitionA] (AsynchViewChangeHandler Thread) I am (192.168.100.28:1099) received membershipChanged event:

2012-05-08 14:47:54,360 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.PartitionA] (AsynchViewChangeHandler Thread) Dead members: 0 ([])

2012-05-08 14:47:54,360 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.PartitionA] (AsynchViewChangeHandler Thread) New Members : 1 ([192.168.100.228:1099])

2012-05-08 14:47:54,360 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.PartitionA] (AsynchViewChangeHandler Thread) All Members : 2 ([192.168.100.28:1099, 192.168.100.228:1099])

2012-05-08 14:48:04,784 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:48:04,784 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-19,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:48:05,046 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-19,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:48:05,046 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:48:06,599 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-14,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:48:06,599 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-16,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:48:06,606 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-17,192.168.100.28:55200) sender 192.168.100.228:55200 not found in xmit_table

2012-05-08 14:48:06,606 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-17,192.168.100.28:55200) range is null

2012-05-08 14:48:06,612 INFO  [org.jboss.cache.RPCManagerImpl] (Incoming-17,192.168.100.28:55200) Received new cluster view: MergeView::[192.168.100.28:55200|1] [192.168.100.28:55200, 192.168.100.228:55200], subgroups=[[192.168.100.28:55200|0] [192.168.100.28:55200], [192.168.100.228:55200|0] [192.168.100.228:55200]]

2012-05-08 14:49:02,220 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-18,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:02,221 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-18,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:02,802 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:02,802 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:06,403 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:06,403 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:06,781 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-18,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:06,781 WARN  [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:23,517 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-2,192.168.100.28:7900) sender 192.168.100.228:7900 not found in xmit_table

2012-05-08 14:49:23,518 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-2,192.168.100.28:7900) range is null

2012-05-08 14:49:33,979 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-1,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:33,980 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-1,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:33,987 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-6,192.168.100.28:55200) sender 192.168.100.228:55200 not found in xmit_table

2012-05-08 14:49:33,988 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-6,192.168.100.28:55200) range is null

2012-05-08 14:49:33,999 INFO  [org.jboss.cache.RPCManagerImpl] (Incoming-6,192.168.100.28:55200) Received new cluster view: MergeView::[192.168.100.28:55200|1] [192.168.100.28:55200, 192.168.100.228:55200], subgroups=[[192.168.100.228:55200|0] [192.168.100.228:55200], [192.168.100.28:55200|0] [192.168.100.28:55200]]

2012-05-08 14:49:35,557 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-14,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:35,559 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-13,192.168.100.28:55200) 192.168.100.28:55200] discarded message from non-member 192.168.100.228:55200, my view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:35,570 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-1,192.168.100.28:55200) sender 192.168.100.228:55200 not found in xmit_table

2012-05-08 14:49:35,570 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-1,192.168.100.28:55200) range is null

2012-05-08 14:49:35,574 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-1,192.168.100.28:55200) org.jboss.messaging.core.impl.postoffice.GroupMember$ControlMembershipListener@4dbbb9f got new view MergeView::[192.168.100.28:55200|1] [192.168.100.28:55200, 192.168.100.228:55200], subgroups=[[192.168.100.28:55200|0] [192.168.100.28:55200], [192.168.100.228:55200|0] [192.168.100.228:55200]], old view is [192.168.100.28:55200|0] [192.168.100.28:55200]

2012-05-08 14:49:35,575 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-1,192.168.100.28:55200) I am (192.168.100.28:55200)

2012-05-08 14:49:35,575 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-1,192.168.100.28:55200) New Members : 1 ([192.168.100.228:55200])

2012-05-08 14:49:35,575 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-1,192.168.100.28:55200) All Members : 2 ([192.168.100.28:55200, 192.168.100.228:55200])


in log 192.168.100.228

 

2012-05-08 14:49:28,435 INFO  [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Loading profile: ProfileKey@65559ba8[domain=default, server=default, name=jbcluster2]

2012-05-08 14:49:28,503 INFO  [org.apache.coyote.http11.Http11AprProtocol] (main) Starting Coyote HTTP/1.1 on http-192.168.100.228-8080

2012-05-08 14:49:28,539 INFO  [org.apache.coyote.ajp.AjpAprProtocol] (main) Starting Coyote AJP/1.3 on ajp-192.168.100.228-8009

2012-05-08 14:49:28,548 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201111102209)] Started in 2m:26s:911ms

2012-05-08 14:49:32,703 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-2,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:32,703 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-2,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:32,707 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-3,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:32,707 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-3,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:32,709 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-6,192.168.100.228:55200) sender 192.168.100.28:55200 not found in xmit_table

2012-05-08 14:49:32,709 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-6,192.168.100.228:55200) range is null

2012-05-08 14:49:32,716 INFO  [org.jboss.cache.RPCManagerImpl] (Incoming-6,192.168.100.228:55200) Received new cluster view: MergeView::[192.168.100.28:55200|1] [192.168.100.28:55200, 192.168.100.228:55200], subgroups=[[192.168.100.228:55200|0] [192.168.100.228:55200], [192.168.100.28:55200|0] [192.168.100.28:55200]]

2012-05-08 14:49:34,286 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-13,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:34,286 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-13,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:34,290 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-17,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:34,290 WARN  [org.jgroups.protocols.pbcast.NAKACK] (Incoming-17,192.168.100.228:55200) 192.168.100.228:55200] discarded message from non-member 192.168.100.28:55200, my view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:34,291 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-20,192.168.100.228:55200) sender 192.168.100.28:55200 not found in xmit_table

2012-05-08 14:49:34,291 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-20,192.168.100.228:55200) range is null

2012-05-08 14:49:34,294 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-20,192.168.100.228:55200) org.jboss.messaging.core.impl.postoffice.GroupMember$ControlMembershipListener@3018076c got new view MergeView::[192.168.100.28:55200|1] [192.168.100.28:55200, 192.168.100.228:55200], subgroups=[[192.168.100.28:55200|0] [192.168.100.28:55200], [192.168.100.228:55200|0] [192.168.100.228:55200]], old view is [192.168.100.228:55200|0] [192.168.100.228:55200]

2012-05-08 14:49:34,294 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-20,192.168.100.228:55200) I am (192.168.100.228:55200)

2012-05-08 14:49:34,294 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-20,192.168.100.228:55200) New Members : 1 ([192.168.100.28:55200])

2012-05-08 14:49:34,294 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (Incoming-20,192.168.100.228:55200) All Members : 2 ([192.168.100.28:55200, 192.168.100.228:55200])

2012-05-08 14:49:35,301 WARN  [org.jgroups.protocols.FD_SOCK] (FD_SOCK pinger,PartitionA-JMS-CTRL,192.168.100.228:55200) received null cache; retrying

 

The errors that appear in the log are not normal, at least I think. Any advice on the matter.I've noticed that these errors appeared again after restarting the instances, the first timethat the start (jbcluster1, jbcluster2) in their logs did not show any error

 

However, I can access and see 192.168.100.28/mod_cluster-manager(mod_cluster-manager.jpg) requests served by each node. Here again I realized that only the node is serving jbcluster2 requests, norequest is served by the jbcluster1. Perhaps there is some configuration that I lack to tellthe weight of each node, as is achieved with the mod_jk workers.properties file.

 

Thanks for the reply friends.

 

Additionally they mean those parameters in the mod_cluster-manager, if they couldsumnistrarme information on this would appreciate it