Bug 793933 (JBEPP-1004)

Summary: Clustering not working with buddy replication enabled
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: mposolda
Component: Portal PackagingAssignee: hfnukal <hfnukal>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.2.0.DEV01CC: theute
Target Milestone: ---   
Target Release: 5.2.0.DEV02   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1004
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-10 08:45:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mposolda 2011-07-12 12:35:57 UTC
project_key: JBEPP

Clustering is not working when buddy replication is enabled. Cause of the error seems to be in bad packaging. JGroups and JBoss cache libraries should not be under server/all/deploy/gatein.ear/lib because they are already under server/all/lib .

To simulate issue, you can do this:

1) Enable buddy replication in $EPP_HOME/server/all/deploy/cluster/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml for "standard-session-cache"

2) Start EPP 5.2 DEV01 with command:
./run.sh -c all

Now you will see error in server log :

07:47:32,491 WARN  [BuddyManager] Caught exception instantiating buddy locator
java.lang.RuntimeException: Unable to initialize AddressLocator
	at org.jboss.cache.buddyreplication.JGroups28AddressLocator.<init>(JGroups28AddressLocator.java:27)
	at org.jboss.cache.buddyreplication.NextMemberBuddyLocator.init(NextMemberBuddyLocator.java:92)
	at org.jboss.cache.buddyreplication.BuddyManager.createBuddyLocator(BuddyManager.java:224)
	at org.jboss.cache.buddyreplication.BuddyManager.setupInternals(BuddyManager.java:184)
	at org.jboss.cache.buddyreplication.BuddyManager.init(BuddyManager.java:272)
	...........
Caused by: java.lang.NoSuchFieldException: GET_PHYSICAL_ADDRESS
	at java.lang.Class.getField(Class.java:1520)
	at org.jboss.cache.buddyreplication.JGroups28AddressLocator.<init>(JGroups28AddressLocator.java:24)
	... 93 more


It's possible to fix this issue by deleting files from server/all/deploy/gatein.ear/lib :
jgroups-2.11.1-Final.jar
jgroups-2.6.13.GA.jar
jbosscache-core-3.2.7.GA.jar
hibernate-jbosscache2-3.3.2.GA.jar

Maybe also other libs should be deleted. For example, I am not sure about infinispan libs. AFAIK infinispan can be used with eXo JCR but we are still using JBoss cache with JCR, so infinispan is probably not required. And it's not part of EPP 5.1.1 .

Comment 2 Thomas Heute 2011-09-22 06:38:21 UTC
Release Notes Docs Status: Added: Not Required