users@glassfish.java.net

Re: EclipseLink CacheCoordination via JMS on GF3.1.1: "Client ID

From: <forums_at_java.net>
Date: Thu, 27 Oct 2011 09:57:31 -0500 (CDT)

Sorry for not responding earlier, I've been travelling. Thanks for your
response, using "useSharedSubscriptionInClusteredContainer = false" on the
connection factory resolves the reported issue.

However, now I've run into more confusing problems. During deployment,
EclipseLink complains that it cannot find the connection factory due to JNDI
Lookup:

Exception [EclipseLink-22106] (Eclipse Persistence Services -
2.3.0.v20110604-r9504):
org.eclipse.persistence.exceptions.RemoteCommandManagerException Exception
Description: Could not create external JMS connection with Topic
jms/bonusAppCacheTopic, Topic Factory jms/bonusAppCacheFactory, and Context
properties {java.naming.provider.url=mq://localhost:27676/,
java.naming.security.principal=guest, dedicated.connection=true,
java.naming.security.credentials=B4279AFEB0CE8B1CBE9319E2F82901C7} Internal
Exception: Exception [EclipseLink-22103] (Eclipse Persistence Services -
2.3.0.v20110604-r9504):
org.eclipse.persistence.exceptions.RemoteCommandManagerException Exception
Description: Could not look up remote connection under name
jms/bonusAppCacheFactory with URL mq://localhost:27676/ Internal Exception:
javax.naming.NamingException: Lookup failed for 'jms/bonusAppCacheFactory' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.provider.url=mq://localhost:27676/,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.security.principal=guest, dedicated.connection=true,
java.naming.security.credentials=guest} [Root exception is
javax.naming.NameNotFoundException: jms] Command deploy completed with
warnings.
 The server.log of the DAS shows the full exception:

Caused by: Exception [EclipseLink-22103] (Eclipse Persistence Services -
2.3.0.v20110604-r9504):
org.eclipse.persistence.exceptions.RemoteCommandManagerException Exception
Description: Could not look up remote connection under name
jms/bonusAppCacheFactory with URL mq://localhost:27676/ Internal Exception:
javax.naming.NamingException: Lookup failed for 'jms/bonusAppCacheFactory' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.provider.url=mq://localhost:27676/,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.security.principal=guest, dedicated.connection=true,
java.naming.security.credentials=guest} [Root exception is
javax.naming.NameNotFoundException: jms] at
org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorLookingUpRemoteConnection(RemoteCommandManagerException.java:101)
at
org.eclipse.persistence.sessions.coordination.jms.JMSPublishingTransportManager.getTopicConnectionFactory(JMSPublishingTransportManager.java:184)
at
org.eclipse.persistence.sessions.coordination.jms.JMSPublishingTransportManager.createConnection(JMSPublishingTransportManager.java:68)
... 45 more Caused by: javax.naming.NamingException: Lookup failed for
'jms/bonusAppCacheFactory' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.provider.url=mq://localhost:27676/,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.security.principal=guest, dedicated.connection=true,
java.naming.security.credentials=guest} [Root exception is
javax.naming.NameNotFoundException: jms] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
at javax.naming.InitialContext.lookup(InitialContext.java:392) at
javax.naming.InitialContext.lookup(InitialContext.java:392) at
org.eclipse.persistence.sessions.coordination.jms.JMSPublishingTransportManager.getTopicConnectionFactory(JMSPublishingTransportManager.java:182)
... 46 more Caused by: javax.naming.NameNotFoundException: jms at
com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:310)
at
com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:218)
at
com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
at
com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:119)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:505)
Parts of my persistence.xml:

<property name="eclipselink.cache.coordination.protocol" value="jms"/>
<property name="eclipselink.cache.coordination.naming-service" value="jndi"
/>
<property name="eclipselink.cache.coordination.jms.host"
value="mq://localhost:27676/"/>
<property name="eclipselink.cache.coordination.jms.topic"
value="jms/bonusAppCacheTopic"/>
<property name="eclipselink.cache.coordination.jms.factory"
value="jms/bonusAppCacheFactory"/>
<property name="eclipselink.cache.coordination.jms.reuse-topic-publisher"
value="true"/>
<property name="eclipselink.cache.coordination.jndi.user" value="guest" />
<property name="eclipselink.cache.coordination.jndi.password" value="guest"
/>
And here's how I created the JMS resources:

asadmin create-jmsdest --desttype topic --target matchpoint-test
bonusApp.cache asadmin create-jms-resource --restype
javax.jms.ConnectionFactory --target matchpoint-test --property
useSharedSubscriptionInClusteredContainer=false jms/bonusAppCacheFactory
asadmin create-jms-resource --restype javax.jms.Topic --target
matchpoint-test --property Name=bonusApp.cache jms/bonusAppCacheTopic
Does anyone have an idea what this could be about?

 


--
[Message sent by forum member 'hverbeek']
View Post: http://forums.java.net/node/851853