db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Courcoux <pe...@courcoux.biz>
Subject Re: Turbine2.3/Torque
Date Sun, 29 Jun 2003 20:52:07 GMT
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 <peter@courcoux.biz>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
-- 
Peter Courcoux <peter@courcoux.biz>

Mime
View raw message