Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 74895 invoked from network); 23 Aug 2009 11:14:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Aug 2009 11:14:42 -0000 Received: (qmail 3363 invoked by uid 500); 23 Aug 2009 11:15:03 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 3292 invoked by uid 500); 23 Aug 2009 11:15:02 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 3281 invoked by uid 99); 23 Aug 2009 11:15:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 11:15:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 11:14:54 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MfB1t-0000Z3-EO for users@jackrabbit.apache.org; Sun, 23 Aug 2009 04:14:33 -0700 Message-ID: <25102296.post@talk.nabble.com> Date: Sun, 23 Aug 2009 04:14:33 -0700 (PDT) From: kbar To: users@jackrabbit.apache.org Subject: Re: JNDI and Jackrabbit In-Reply-To: <25101812.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: whereiskent@gmail.com References: <25101779.post@talk.nabble.com> <25101812.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I have also tried the following but they also did not work... String configFile = "/Library/Tomcat/Home/jackrabbitrepo/repository.xml"; String repHomeDir = "/Library/Tomcat/Home/jackrabbitrepo"; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.jackrabbit.core.jndi" + ".provider.DummyInitialContextFactory"); env.put(Context.PROVIDER_URL, "localhost"); //Also tried localhost:8080/jackrabbit InitialContext ctx = new InitialContext(env); repo = (Repository) ctx.lookup("jackrabbit.repository"); Here I also tried to register a new name to use but that doesn't work for me since I do not have permission to create a .lock file in the repHomeDir and I don't want to run NetBeans as root to allow this (and I am not even sure it will work anyway). String configFile = "/Library/Tomcat/Home/jackrabbitrepo/repository.xml"; String repHomeDir = "/Library/Tomcat/Home/jackrabbitrepo"; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.jackrabbit.core.jndi" + ".provider.DummyInitialContextFactory"); env.put(Context.PROVIDER_URL, "localhost"); //Also tried localhost:8080/jackrabbit InitialContext ctx = new InitialContext(env); RegistryHelper.registerRepository(ctx, "repo", configFile, repHomeDir, true); repo = (Repository) ctx.lookup("repo"); -- View this message in context: http://www.nabble.com/JNDI-and-Jackrabbit-tp25101779p25102296.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.