Return-Path: Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 11984 invoked from network); 16 Apr 2003 21:58:54 -0000 Received: from mhultra.aero.org (130.221.88.102) by daedalus.apache.org with SMTP; 16 Apr 2003 21:58:54 -0000 Received: from [130.221.24.10] by mhultra.aero.org with ESMTP for torque-user@db.apache.org; Wed, 16 Apr 2003 14:56:08 -0700 Received: from minaret.com (aai948.aero.org [130.221.26.220]) by rushe.aero.org (8.11.6+Sun/8.11.6) with ESMTP id h3GLu8S00537 for ; Wed, 16 Apr 2003 14:56:08 -0700 (PDT) Message-Id: <3E9DD161.7454ED8B@minaret.com> Date: Wed, 16 Apr 2003 14:55:45 -0700 From: Jon King X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Turbine Torque Users List Subject: Re: Torque.init() can't find project.properties from servlet References: <3E9DC916.80707@bravenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yes, it seems like the properties file should be found if it's anywhere in your classpath, but that hasn't been the case for me. I've had to either drop the properties file into directory that the app is running in (system property user.dir) or provide an absolute path. Gabriel Bauman wrote: > Hello again, > > I am using Torque in a servlet environment. I can't seem to get Torque > to see my project.properties file, which contains the db settings etc, > even though it's in my WEB-INF/classes folder and is on the classpath. > > java.io.FileNotFoundException: project.properties (The system cannot > find the file specified) > ... > at org.apache.torque.Torque.init(Torque.java:386) > > I'm kind of at a loss, can anyone offer some insight? I am using a > recent CVS snapshot of Torque. > > Thanks, > > Gabe > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org