db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Caserta <smoothie...@yahoo.com>
Subject org.apache.torque.TorqueException: java.lang.InstantiationException
Date Tue, 04 Oct 2005 18:26:12 GMT
Hi,

I'm converting from Torque 3.0 to 3.2, and I'm
accessing a DB2 database. The Torque initialization is
throwing the following exception.
org.apache.torque.TorqueException:
java.lang.InstantiationException

I'm attempting to use the DataSourceFactory. Here is
my properties file..

torque.applicationRoot = .

log4j.category.org.apache.torque = ALL,
org.apache.torque
log4j.appender.org.apache.torque =
org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file =
logs/torque.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
torque.defaults.pool.maxWait = 10000
torque.defaults.pool.maxIdle = 8
torque.defaults.pool.maxActive = 10
torque.defaults.pool.timeBetweenEvictionRunsMillis=
300000
torque.defaults.connection.driver =
COM.ibm.db2.jdbc.app.DB2Driver
torque.defaults.connection.url = jdbc:db2:DB2B
torque.defaults.connection.user = itdmegb
torque.defaults.connection.password = chubb99

torque.database.default=DB2B
torque.database.DB2B.adapter=db2app

#Using commons-dbcp
torque.dsfactory.DB2B.factory=org.apache.torque.dsfactory.DataSourceFactory

#torque.dsfactory.DB2B.pool.maxIdle=8
#torque.dsfactory.DB2B.pool.maxActive=10
#torque.dsfactory.DB2B.pool.testOnBorrow=true
#torque.dsfactory.DB2B.pool.validationQuery=values(1) 
torque.dsfactory.DB2B.connection.driver =
COM.ibm.db2.jdbc.app.DB2Driver
torque.dsfactory.DB2B.connection.url = jdbc:db2:DB2B
torque.dsfactory.DB2B.connection.user = xxxxxxx
torque.dsfactory.DB2B.connection.password = xxxxxx
torque.idbroker.clever.quantity=true
torque.manager.useCache = true

Thank you for any suggestions,
m



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message