NMSV0701W warning occurs during startup of CMP entity bean in WebSphere Application Server V5
 Technote (troubleshooting)
 
Problem(Abstract)
When starting a WebSphere® Application Server v5 application server, the following warning can occur when a Container-Managed Persistence (CMP) entity bean starts:

NMSV0701W: An IndirectJNDILookup object was created with an empty name.
Lookups using this object will fail.
java.lang.Throwable
at
com.ibm.ws.naming.util.IndirectJndiLookup.init(IndirectJndiLookup.java:239)
at
com.ibm.ws.naming.util.IndirectJndiLookup.<init>(IndirectJndiLookup.java:161)
...
 
Cause
The problem occurs because the JNDI-CMP connection factory binding for the CMP entity bean was left blank in the EJB™ deployment descriptor.
 
Resolving the problem
To resolve the problem, edit the EJB deployment descriptor (ejb-jar.xml) using WebSphere Studio Application Developer, the Application Server Toolkit (ASTK) or the Application Assembly Tool (AAT).

Using WebSphere Studio Application Developer or the ASTK:

  1. In the EJB deployment descriptor editor, click on the Overview tab, and scroll down to JNDI-CMP Connection Factory Binding.
  2. For JNDI Name, enter the JNDI name of the data source that you want to use for CMP persistence.
  3. Select Container For the Container Authorization Type.

Using the AAT:

  1. Select the entity bean, and then click on the CMP Resource Bindings tab.
  2. For JNDI name, enter the JNDI name of the data source that you want to use for CMP persistence.
  3. Select Container for Resource authentication.

After making this change and reinstalling the EJB application on WebSphere Application Server, the NMSV0701W warning should no longer occur.

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > JNDI/Naming
Operating system(s): Windows
Software version: 5.1.1.2
Software edition:
Reference #: 1191899
IBM Group: Software Group
Modified date: Dec 1, 2004