Test Connectivity fails on JNDI server instance
SummaryUser 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 MessagesRequired classes are not available, please check the configuration
Steps to ReproduceTest Connectivity by using Context factory as org.jnp.interfaces.NamingContextFactory on JNDI-Server.
Root CauseA 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.
ResolutionPerform 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