File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes LDAP problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "LDAP problem" Watch "LDAP problem" New topic
Author

LDAP problem

Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 563
I'm using javax.naming.* to access an LDAP server. This is my code, and I don't understand the output showing the errors:

the output looks like this:
instantiated LdapCtxFactory
Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory
Why?!!!
as you can see, i can instantiate the LdapCtxFactory as a plain old class, but when I try to use it to create a context instance, it falls over.
Can anybody tell what stupid thing i'm doing wrong?
thanks
Adam


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
 
 
subject: LDAP problem
 
Threads others viewed
Webapp and LDAP authentication
Context Factory - Urgent help please
JNDI Error: LDAPCtxFactory
Configuring the application policy in login-config.xml for LDAP Apache DS
Cannot instantiate class : LdapCtxFactory
MyEclipse, The Clear Choice