Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 55187 invoked from network); 16 Dec 2004 00:09:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Dec 2004 00:09:16 -0000 Received: (qmail 2433 invoked by uid 500); 16 Dec 2004 00:09:12 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 2410 invoked by uid 500); 16 Dec 2004 00:09:12 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 2396 invoked by uid 99); 16 Dec 2004 00:09:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from pimout3-ext.prodigy.net (HELO pimout3-ext.prodigy.net) (207.115.63.102) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Dec 2004 16:07:23 -0800 Received: from [192.168.111.94] (adsl-68-127-142-1.dsl.pltn13.pacbell.net [68.127.142.1]) by pimout3-ext.prodigy.net (8.12.10 milter /8.12.10) with ESMTP id iBG06vNc342806 for ; Wed, 15 Dec 2004 19:07:05 -0500 Mime-Version: 1.0 X-Sender: u36sean_@catalla.com Message-Id: In-Reply-To: References: Date: Wed, 15 Dec 2004 16:06:56 -0800 To: "Apache Torque Users List" From: "M. Sean Gilligan" Subject: Torque using Tomcat Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm using Torque 3.1.1 with Tomcat 5.0.28 and MySQL. In a Tomcat context.xml file I've defined a JNDI DataSource and in torque.prorperties the JndiDataSourceFactory factory is being used. The webapp works fine until the webapp is realoaded. The first database access after a reload gives this stack trace: Caused by: java.lang.NullPointerException: There was no DataSourceFactory configured for the connection my_om at org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:711) at org.apache.torque.Torque.getConnection(Torque.java:268) at org.apache.torque.util.Transaction.beginOptional(Transaction.java:80) at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1195) Any ideas? Thanks, Sean -- --------------------------------------------------------------------------- M. Sean Gilligan : 831-466-9788 x11 --------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org