I have a problem when having two GateIn instances on different servers running in cluster. Steps to simulate:
1) Run node1 with -Dexo.profiles=cluster
2) Run node2 with -Dexo.profiles=cluster
3) Login as root in node1 and go to portalnavigation -> Edit navigations -> Add node -> Use existing page in page selector (portal::classic::homepage) -> Fill node name and title -> click to Save
4) Now I am not able to see my new node. But I am not able to see it after logout. I can see exceptions in server logs in both node1 and node2.
Exception on node2 is "[TxInterceptor] prepare failed! java.lang.NullPointerException".
Exception on node1 is "[TxIsolatedOperation] Transaction has been rolled back javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction."
Exception on node2 (NullPointerException) occurs first and exception "RollbackExcption" on node1, where new navigations were created, occurs after it. And I can see only when having cluster with more nodes. It doesn't occur in single node.
For completeness: I am using shared database MySQL with JBoss datasources in server/production/deploy directory and "no-tx-datasource" datasource. Both nodes are executed with "-Dexo.profiles=cluster". I am attaching my server/production/conf/gatein/configuration.xml.