Your Trail jndi >
directory > jndi
Keywords CORBA, DNS, LDAP, NDS, NIS, RMI, axis, directory, naming
Copyright Information This article is licensed under
GNU Public License .
Some of the images in this article may have different copyright licenses.
Please follow the URLs of the images for detailed information about their
specific copyright licenses.
Contact
webmasters for more information
on copyright issues.
1 Introduction
JNDI is short for Java Naming and Directory Service. It provides naming and directory functionalities to Java
applications. In short, JNDI provides a Java-based unified interface for naming and directory service.
A variety of naming and directory service implementations can be accessed in a unified way: be it
LDAP , DNS , NIS , NDS , RMI , or CORBA .
The following images shows how JNDI unifies various naming and directory services[SunJndi]
2 com.sun.jndi.nis.NISCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.nis.NISCtxFactory]
In my case, it was caused by missing nis.jar and providerutil.jar so JVM doesnot know where to get
the NISCtxFactory class. I was using nis lookup in an axis service,
everything worked fine after I put the two jar files into axis_home/WEB-INF/lib/
References [SunJndi] SUN Microsystems http://java.sun.com/products/jndi/tutorial