Smarts NCM: Cannot log into Smarts NCM server; "javax.naming.NamingException: Failed to retrieve Naming interface" error found in log files.
search cancel

Smarts NCM: Cannot log into Smarts NCM server; "javax.naming.NamingException: Failed to retrieve Naming interface" error found in log files.

book

Article ID: 330951

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:




The following conditions, events or system behaviors may be observed with this issue:
  • Error message received when logging into Smarts NCM server and login fails.
  • Valid password in postgres-ds.xml.
  • Error similar to the following seen in Smarts NCM logs:
javax.naming.NamingException: Failed to retrieve Naming interface for provider http://127.0.0.1:8881/invoker/JNDIFactory [Root exception is java.net.ConnectException: Connection refused: connect]
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:96)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)


Environment

VMware Smart Assurance - NCM

Cause

Java 7 installed in the environment and it was enabled in Java viewer. Java 7 is not supported in Smarts NCM 9.2.

Resolution

Java 7 is supported in Smarts NCM 9.2.2 and later versions. To address this issue, do either of the following:
  • To use Java 7, you must upgrade your Smarts NCM environment to Smarts NCM 9.2.2 or later.
  • To address this issue without upgrading from Smarts NCM 9.2, you must configure the environment to disable Jave 7 and use Java 6 instead (see EMC article https://support.emc.com/kb/87946).  The actions required to do this are as follows:
  1. Uninstall Java 7.
  2. Set the correct path for Java 6 in the environment variables.
  3. Restart the Web browser.
  4. Restart Smarts NCM services.