Return-Path: Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 15606 invoked from network); 29 Jun 2003 20:52:03 -0000 Received: from pjcourcouxdsl.claranet.co.uk (HELO pjc.courcoux.biz) (217.158.80.250) by daedalus.apache.org with SMTP; 29 Jun 2003 20:52:03 -0000 Received: (from peter@localhost) by pjc.courcoux.biz (8.11.6/linuxconf) id h5TKq7k07248 for torque-dev@db.apache.org; Sun, 29 Jun 2003 21:52:07 +0100 Subject: Re: Turbine2.3/Torque From: Peter Courcoux To: Turbine Torque Developers List In-Reply-To: <1056893248.3473.16.camel@pjc.courcoux.biz> References: <1056835514.1295.28.camel@pjc.courcoux.biz> <3EFEBCB1.4070909@marmot.at> <1056883363.1864.2.camel@pjc.courcoux.biz> <3EFEC421.6010205@marmot.at> <1056885678.1864.6.camel@pjc.courcoux.biz> <3EFECFF1.8070306@marmot.at> <1056893248.3473.16.camel@pjc.courcoux.biz> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1056919927.3473.130.camel@pjc.courcoux.biz> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 29 Jun 2003 21:52:07 +0100 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I should have pointed out that this is trying to load Torque as an Avalon service. Works fine with turbine component service. Thanks Peter On Sun, 2003-06-29 at 14:27, Peter Courcoux wrote: > Martin, > > I am now getting this error. I will look into this further myself, but > figure that if you are trying to get a new release out, best you know what > I am finding as I try to convert my application over. > > > 2003-06-29 14:19:09,422 [Ajp13Processor[8009][4]] ERROR com.ittdirect.tolreg.tools.UtilsTool - UtilsTool.getNumberRegistryDocs() - Error getting count from registry > java.lang.NullPointerException: There was no DataSourceFactory configured for the connection default > at org.apache.torque.TorqueSingleton.getConnection(TorqueSingleton.java:765) > > > WEB-INF/conf/Torque.properties is :- > > # ------------------------------------------------------------------- > # $Id: Torque.master,v 1.3 2002/08/07 08:07:01 jmcnally Exp $ > # > # This is the configuration file for Torque. > # > # Note that strings containing "," (comma) characters must backslash > # escape the comma (i.e. '\,') > # > # ------------------------------------------------------------------- > > torque.applicationRoot = . > > # ------------------------------------------------------------------- > # > # L O G G I N G > # > # ------------------------------------------------------------------- > # We use Log4J for all Torque logging and we embed the log4j > # properties within our application configuration. > # ------------------------------------------------------------------- > > log4j.category.default = ALL, default > log4j.appender.default = org.apache.log4j.FileAppender > log4j.appender.default.file = ./torque.log > log4j.appender.default.layout = org.apache.log4j.PatternLayout > log4j.appender.default.layout.conversionPattern = %d [%t] %-5p %c - %m%n > log4j.appender.default.append = false > > log4j.category.org.apache.torque = ALL, org.apache.torque > log4j.appender.org.apache.torque = org.apache.log4j.FileAppender > log4j.appender.org.apache.torque.file = ./turbine.log > log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout > log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c - %m%n > log4j.appender.org.apache.torque.append = false > > # This category is used in the BasePeer class. All > # SQL generated will be logged if the category > # priority is set to DEBUG > > log4j.category.sql = DEBUG, sql > log4j.appender.sql = org.apache.log4j.FileAppender > #log4j.appender.sql.file = ./sql.log > log4j.appender.sql.file = ${torque.applicationRoot}/logs/torque.log > log4j.appender.sql.layout = org.apache.log4j.PatternLayout > log4j.appender.sql.layout.conversionPattern = %d [%t] %-5p %c - %m%n > log4j.appender.sql.append = false > > > > # ------------------------------------------------------------------- > # > # T O R Q U E P R O P E R T I E S > # > # ------------------------------------------------------------------- > # These are your database settings. Look in the > # org.apache.torque.pool.* packages for more information. > # > # The parameters to connect to the default database. You MUST > # configure these properly. > # ------------------------------------------------------------------- > > DATABASE_DEFAULT=tolreg > > torque.database.default=tolreg > torque.database.tolreg.adapter=postgresql > > > ## Using Jdbc2Pool > torque.dsfactory.tolreg.factory=\ > org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory > torque.dsfactory.tolreg.pool.defaultMaxActive=10 > torque.dsfactory.tolreg.pool.testOnBorrow=true > torque.dsfactory.tolreg.pool.validationQuery=SELECT 1 > torque.dsfactory.tolreg.connection.driver = org.postgresql.Driver > torque.dsfactory.tolreg.connection.url = jdbc:postgresql://127.0.0.1:5432/tolreg > torque.dsfactory.tolreg.connection.user = peter > torque.dsfactory.tolreg.connection.password = > > > > # Determines if the quantity column of the IDBroker's id_table should > # be increased automatically if requests for ids reaches a high > # volume. > > torque.idbroker.cleverquantity=true > > > > > -- > > Peter Courcoux > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org > For additional commands, e-mail: torque-dev-help@db.apache.org -- Peter Courcoux