Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 60166 invoked from network); 24 Oct 2003 15:05:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Oct 2003 15:05:44 -0000 Received: (qmail 22975 invoked by uid 500); 24 Oct 2003 15:05:36 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 22963 invoked by uid 500); 24 Oct 2003 15:05:36 -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 22950 invoked from network); 24 Oct 2003 15:05:35 -0000 Received: from unknown (HELO pecan.cc.columbia.edu) (128.59.59.178) by daedalus.apache.org with SMTP; 24 Oct 2003 15:05:35 -0000 Received: from earthlink.net (michaeld.dkv.columbia.edu [128.59.47.20]) (user=mdb2005 mech=PLAIN bits=0) by pecan.cc.columbia.edu (8.12.10/8.12.10) with ESMTP id h9OF5aaJ001832 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NOT) for ; Fri, 24 Oct 2003 11:05:37 -0400 (EDT) Date: Fri, 24 Oct 2003 11:05:35 -0400 Subject: Re: Torque.properties not being read? Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Michael Della Bitta To: "Apache Torque Users List" Content-Transfer-Encoding: 7bit In-Reply-To: <000401c39a3a$fa55e620$a400a8c0@hq.orionsec.com> Message-Id: <8541848D-0633-11D8-9488-00039392D384@earthlink.net> X-Mailer: Apple Mail (2.552) X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.35 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Scott: Are you explicitly loading the properties and initializing Torque? It doesn't do that for itself... Michael On Friday, October 24, 2003, at 10:27 AM, Scott Shorter wrote: > Hi all, new user here, trying to get my bearings. > > In running a simple test application that currently does little more > than try to query, I'm getting a TorqueException with the message > "There > was no DataSourceFactory configured for the connection got" (where > 'got' > is the database name). > > I do have the following in my Torque.properties file: > > torque.dsfactory.got.factory=org.apache.torque.dsfactory.SharedPoolData > S > ourceFactory > torque.dsfactory.got.pool.defaultMaxActive=10 > torque.dsfactory.got.pool.testOnBorrow=true > torque.dsfactory.got.pool.validationQuery=SELECT 1 > torque.dsfactory.got.connection.driver = org.gjt.mm.mysql.Driver > torque.dsfactory.got.connection.url = jdbc:mysql://localhost:3306/got > torque.dsfactory.got.connection.user = > torque.dsfactory.got.connection.password = > > Which makes me wonder whether Torque.properties is being read or not. > I > have it located in the torque directory under the location from which I > am running my test - this seems like the place to put it, based on the > "Run-Time Properties" section of > http://db.apache.org/torque/tutorial/step2.html > > Any suggestions? > > Thanks, > Scott > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org