Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory
I am receiving the following error when doing an LDAP "lookup" from within Oracle:-
Problem getting attribute:javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException:
com/sun/jndi/ldap/LdapCtxFactory]
Currently have an existing Oracle8.1.6 installation, we are porting existing software to a Solaris8 box running Oracle9i. As far as I can see jndi, ldap had not been installed as part of standard Oracle9i installation, searching the internet I see a number of people have had a similar error to me. Most people just answer by saying go to http://java.sun.com/products/jndi/serviceproviders.html, download the relevant jndi/ldap levels unzip/loadjava and it works.
Well I've tried that, still get the same error, I have done the following once downloaded:-
unzipped jndi-1_2_1.zip and ldap-1_2_4.zip
In the relevent lib dirs (I also tried the same in the $ORACLE_HOME/jlib directory):-
loadjava -resolve -user <user>/<passwd> jndi.jar
loadjava -resolve -user <user>/<passwd> providerutil.jar
loadjava -resolve -user <user>/<passwd> ldap.jar
I have noticed when looking in the dba_objects table there is an object_name of /1b127549_LdapCtxFactory and status is valid, is there a "rename" or synonym needed? Is there some sort of "make" file that is supposed to do all this for me?
Read somewhere ldap etc was part of OID, tried that to.
Ideally I would like to know where I went wrong originally using Installer, why the classes were not loaded automatically.
Can anyone help?
Regards
Adrian