Support Article
Test Connectivity fails on JNDI server instance
SA-21971
Summary
User is getting a classNotFound exception while performing test connectivity on a JNDI server instance. Observed in Jboss6.4 and Jboss 6.2 application servers.
Error Messages
Required classes are not available, please check the configuration
Error Details:
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
Steps to Reproduce
Test Connectivity by using Context factory as org.jnp.interfaces.NamingContextFactory on JNDI-Server.
Root Cause
A software use or operation error
As per the Jboss application server documents, one should not use the JNP protocol with JBoss AS7/EAP6.x versions and must change to ejb-client or remote-naming as the JNDI naming implementation.
Resolution
Perform the following local-change:
Instead of using JNP: "org.jnp.interfaces.NamingContextFactory", use the below remote-naming for JBoss EAP 6.x
Context Factory : "org.jboss.naming.remote.client.initialcontextfactory"
Provider URL : "remote://hostname:portnumber"
Published April 11, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.