Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context Factory - Urgent help please

 
Ambrose R Tati
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
where can I get this class from?com.sun.jndi.fscontext.RefFSContextFactory
So that I can do something like
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
Many thanks
Ambrose Tati
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ambrose, like i said to the others trying to use jndi, i haven't got it working yet but i need to soon. are you trying to access an LDAP server on your own server, or someone else's?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is part of the file system service provider. The file system service provider is part of the JNDI software.
You can download it from...
http://java.sun.com/products/jndi/index.html#download

------------------
Tom
Sun Certified Programmer for the Java� 2 Platform
Moderator of the forums:
J2EE and EJB
Other Java APIs
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom ,
do you know whether that will help with the LDAP service as well?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you installed an LDAP service?
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Thomas Paul:
Have you installed an LDAP service?

I'm trying to access a remote LDAP server. Curiously enough even though I have the ldap.jar file installed and can instantiate classes from it, the following code throws the exception "cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory"
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody out there with experience on this? i'm really stuck.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic