Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 89271 invoked from network); 20 Sep 2007 19:12:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 19:12:54 -0000 Received: (qmail 51459 invoked by uid 500); 20 Sep 2007 19:12:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 51433 invoked by uid 500); 20 Sep 2007 19:12:45 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 51424 invoked by uid 99); 20 Sep 2007 19:12:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 12:12:45 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 19:14:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1747A71420F for ; Thu, 20 Sep 2007 12:12:31 -0700 (PDT) Message-ID: <27010427.1190315551084.JavaMail.jira@brutus> Date: Thu, 20 Sep 2007 12:12:31 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1048) JNDIDatabaseFileSystem was not woring in tomcat webapp In-Reply-To: <17259607.1185998153830.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved JCR-1048. -------------------------------- Resolution: Won't Fix Assignee: Jukka Zitting Resolving as Won't Fix based on the above rationale. > JNDIDatabaseFileSystem was not woring in tomcat webapp > ------------------------------------------------------ > > Key: JCR-1048 > URL: https://issues.apache.org/jira/browse/JCR-1048 > Project: Jackrabbit > Issue Type: Bug > Components: core > Affects Versions: 1.3 > Reporter: Stephen More > Assignee: Jukka Zitting > > The new method should look like this: > protected Connection getConnection() throws NamingException, SQLException { > InitialContext ic = new InitialContext(); > DataSource dataSource = null; > try > { > dataSource = (DataSource) ic.lookup(dataSourceLocation); > } > catch( javax.naming.NameNotFoundException e ) > { > // Now lets try it this way > javax.naming.Context envCtx = (javax.naming.Context)ic.lookup( "java:comp/env" ); > dataSource = (DataSource) envCtx.lookup(dataSourceLocation); > } > return dataSource.getConnection(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.