Hi,
    I had posted a message earlier also,with regards to this problem.
I am trying to create a directory context and pass it an environment
variable,however I am getting this error.Earlier I also got
UnsatisfiedLinkError.I am Netscape Directory Server4.1

java.lang.NoClassDefFoundError: com/sun/naming/internal/ResourceManager
        at
        at javax.naming.InitialContext.(InitialContext.java:202)
        at javax.naming.directory.InitialDirContext.(InitialDirContext.java:87)


This is extract from the code.

Hashtable env = new Hashtable(11);
        env.put(Context.INITIAL_CONTEXT_FACTORY,
            "com.sun.jndi.ldap.LdapCtxFactory");
        env.put(Context.PROVIDER_URL,
"ldap://localhost:389/o=pinol1.sfba.home.com");
        env.put(Context.SECURITY_PRINCIPAL, "cn=Directory Manager");
        env.put(Context.SECURITY_CREDENTIALS, "admin123");


  try {
            // Create the initial context
            DirContext ctx = new InitialDirContext(env);
            // Get the schema tree root
                out.println("got context");
            DirContext schema = ctx.getSchema("");


Any Suggestions.

Thanks,
Raj







_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to