Op 5 feb. 2021, om 16:39 heeft 'Dimitri' via Payara Forum <payara...@googlegroups.com> het volgende geschreven:Hi all,I used JGroups on Glassfish 4 without a problem, but have some trouble using it with Payara 5.2020.7.First of all, I enable JPA cache coordination in persistence.xml<shared-cache-mode>DISABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="eclipselink.cache.coordination.protocol" value="jgroups" />
<property name="eclipselink.cache.coordination.jgroups.config" value="jgroups.xml" />
</properties>That alone is not enough as deploying my web app gives a java.lang.NoClassDefFoundError: org/jgroups/JChannelSo I assume that jgroups.jar is not included with Payara 5.2020.7I then add JGroups 4.2.11.Final.jar in /glassfish/lib and try again. However now I getException [EclipseLink-28019] (Eclipse Persistence Services - 2.7.7.payara-p3): org.eclipse.persistence.exceptions.EntityManagerSetupExceptionException Description: Deployment of PersistenceUnit [PictabiteMaster] failed. Close all factories for this PersistenceUnit.
Internal Exception: java.lang.NoSuchMethodError: org.jgroups.JChannel.connect(Ljava/lang/String;)V|#]
I contacted the JGroups folks and they are telling me that this is very likely a jar incompatibility.
I'd like to confirm two things:
1) Do I really need to supply my own jgroups.jar or is there one included with Payara, and if so, then why do I get a java.lang.NoClassDefFoundError: org/jgroups/JChannel
2) If jgroups.jar is not included in Payara 5, then which version should I supply to fix the Exception: java.lang.NoSuchMethodError: org.jgroups.JChannel.connect(Ljava/lang/String;)V|#] error?
Btw:
Enabling Hazelcast as described here does not raise any errors, but also does not seem to perform any cache synchronization either - perhaps because my cluster is an AWS Elasticbeanstalk environment, so EC2 instances start and stop automatically depending on load (therefore the manual configuration described here does not make much sense )
Thank you!
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/218fba4d-03d6-43eb-9c33-98b29990cc08n%40googlegroups.com.
${SCRIPT_DIR}
directory and place the post boot commands file to ${POSTBOOT_COMMANDS} , see the Payara Docker docs.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/49C5456B-44AA-44CC-9BD9-31F8B1FDED80%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/30e48c02-7384-4c8b-9e44-9769c90ff965n%40googlegroups.com.