Hello,
I have an application which primarily consists of RESTful web services that communicate with Stateless session beans that manipulate data using JPA.
I use EclipseLink as Persistence provider.
My task is to run the application in a clustered environment.
I followed the guide to create a simple cluster
http://blog.payara.fish/payara-server-basics-creating-a-simple-clusterAfter enabling Hazlecast, I checked and everything except JMS availability was enabled. I enabled it too and Saved the configuration.
I have created JMS resources as indicated in
https://wiki.eclipse.org/EclipseLink/Examples/JPA/CacheCoordinationBut when I deploy the application in the cluster I get the following error:
Error occurred during deployment: Exception while preparing the app :
Exception [EclipseLink-28019] (Eclipse Persistence Services -
2.6.4.qualifier):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit
[test_clustertest_war_1.0-SNAPSHOTPU] failed. Close all factories
for this PersistenceUnit.
Internal Exception: Exception [EclipseLink-22106] (Eclipse Persistence
Services - 2.6.4.qualifier):
org.eclipse.persistence.exceptions.RemoteCommandManagerException
Exception Description: Could not create external JMS connection with
Topic jms/TestCCTopic and Topic Factory jms/TestCCTopicFactory.
Also, check your context properties are set correctly.
Internal Exception: Exception [EclipseLink-22103] (Eclipse Persistence
Services - 2.6.4.qualifier):
org.eclipse.persistence.exceptions.RemoteCommandManagerException
Exception Description: Could not look up remote connection under name
jms/TestCCTopicFactory with URL null
Intern .... msg.seeServerLog
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="test_clustertest_war_1.0-SNAPSHOTPU" transaction-type="JTA"> <jta-data-source>jdbc/test</jta-data-source> <exclude-unlisted-classes>false</exclude-unlisted-classes> <properties> <property name="eclipselink.cache.coordination.protocol" value="jms" /> <property name="eclipselink.cache.coordination.naming-service" value="jndi"/> <property name="eclipselink.cache.coordination.jms.topic" value="jms/TestCCTopic" /> <property name="eclipselink.cache.coordination.jms.factory" value="jms/TestCCTopicFactory" /> <property name="eclipselink.cache.coordination.jms.reuse-topic-publisher " value="true"/> <property name="javax.persistence.schema-generation.database.action" value="create"/> <property name="eclipselink.logging.level" value="FINE"/> </properties> </persistence-unit> </persistence> Could you please indicate why EclipseLink cannot lookup resources? What am I missing here?
When I use asadmin list-jms-resources for cluster members everything is listed.
|
 |
|
|
|