WebLogic Server - "javax.naming.NameNotFoundException" Occurs on JMS Queue in Cluster When One of the Managed Servers is Down (Doc ID 1283599.1)

Last updated on MARCH 23, 2015

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 11-May-2013***

Symptoms

When more than one JMS Queue with the same JNDI name is created and deployed on individual managed servers which are part of a WebLogic Server cluster, the following exceptions are observed when one of the cluster members is down:

For example, consider this domain configuration:

The JNDI name is same for both JMS queues which are created inside each JMS module targeted to the managed servers. When both the managed servers in the cluster are up and running, there will be no issues. The JNDI look up to the JMS queue works fine and the JMS queue JNDI name is present in JNDI tree of both the managed servers.

But when one of the managed servers in cluster is brought down, and when you access the JNDI tree of other managed server which is up and running, you observe that the JMS Queue JNDI name is missing in the running managed server JNDI tree.

Also, at this point when you try to do a JNDI lookup of the JMS Queue from a standalone client or some application on the running managed server in cluster, you observe the "javax.naming.NameNotFoundException."

This is because the JMS Queue JNDI object is missing in the JNDI tree of the running managed server in the cluster.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms