• Post Reply Bookmark Topic Watch Topic
  • New Topic

LDAP problem  RSS feed

 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!