Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42229 invoked from network); 19 May 2008 22:19:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 22:19:42 -0000 Received: (qmail 88640 invoked by uid 500); 19 May 2008 22:19:30 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 88603 invoked by uid 500); 19 May 2008 22:19:30 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 88541 invoked by uid 99); 19 May 2008 22:19:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 15:19:30 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG 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; Mon, 19 May 2008 22:18:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JyDh3-0001J1-JB for users@tomcat.apache.org; Mon, 19 May 2008 15:18:57 -0700 Message-ID: <17329386.post@talk.nabble.com> Date: Mon, 19 May 2008 15:18:57 -0700 (PDT) From: pingu1611 To: users@tomcat.apache.org Subject: Global JNDI and Tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gareth.nolan@virgin.net X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks in advance for any help you may be able to give. I've searched the net for a couple of days now but with no success (even with similar messages posted on this site). What I'm trying to do is setup global JNDI on tomcat 5.5 (for use with jackrabbit and Magnolia CMS) but either it's not working or I have lost the plot. If I have got the confuguration correct for tomcat and you think it may be a jacrabbit or magnolia issue then please tell me and I'll try on another forum. A previous message on this subject said to include the resource in the GlobalNamingResources element of server.xml along with the ResourceLink. This is what I have: and in web.xml Jackrabbit Repository magnoliaAuthor javax.jcr.Repository Using this configuration doesn't appear to work as when I put some debugging in my servlet the jndi context is empty. The piece of servlet code is: Context initContext = new InitialContext (); Context envContext = (Context)initContext.lookup ("java:/comp/env"); Object o = envContext.lookup ("magnoliaAuthor"); // Should this be the global name (doesn't work either way). BindableRepository repo = (BindableRepository) o; Hope someone can point me in the right direction. Thanks, Gareth -- View this message in context: http://www.nabble.com/Global-JNDI-and-Tomcat-tp17329386p17329386.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org