Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 9969 invoked from network); 13 Jan 2004 22:28:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Jan 2004 22:28:26 -0000 Received: (qmail 13095 invoked by uid 500); 13 Jan 2004 22:27:49 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 13053 invoked by uid 500); 13 Jan 2004 22:27:48 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 13000 invoked from network); 13 Jan 2004 22:27:48 -0000 Received: from unknown (HELO latte.harvard.edu) (140.247.210.252) by daedalus.apache.org with SMTP; 13 Jan 2004 22:27:48 -0000 Received: from latte.harvard.edu (lorien.fas.harvard.edu [::ffff:140.247.212.206]) (AUTH: PLAIN mdiggory, ) by latte.harvard.edu with esmtp; Tue, 13 Jan 2004 17:27:51 -0500 Message-ID: <400470E2.5030900@latte.harvard.edu> Date: Tue, 13 Jan 2004 17:27:46 -0500 From: "Mark R. Diggory" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.6a) Gecko/20031030 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Problems Instantiating JNDI LdapDirContext as resource. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm hoping to be able to build a Federated Namespace and be able to access my ldap context in a federated fashion from the "java:comp" context for instance "java:comp/env/ldap/ou=foo,o=bar". java.naming.factory.initial com.sun.jndi.ldap.LdapCtxFactory java.naming.provider.url ldap://localhost:389 java.naming.security.authentication none java.naming.referral follow java.naming.ldap.referral.limit 1 If I understand correctly, all the ResourceParams will be handed to the constructor of a LdapDirContext by the above Factory provided by Sun and that I should be able to acquire this context simply with Context ctx = new InitialContext(); DirContext ldap_ctx = (DirContext) ctx.lookup("java:comp/env/ldap"); However, I consistently get: Message: Cannot create resource instance javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(Unknown Source) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.NamingContext.lookup(Unknown Source) at org.apache.naming.SelectorContext.lookup(Unknown Source) at javax.naming.InitialContext.lookup(InitialContext.java:345) Any help or comment would be greatly appreciated. -Mark -- Mark Diggory Software Developer Harvard MIT Data Center http://osprey.hmdc.harvard.edu --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org