Torque error, heeelp!!!
HiHi,
I have this error with torque:
org.apache.torque.TorqueException: Attempt to register poolfor database stocktrack that is not configured in Torque.properties
at org.apache.torque.Torque.getPool(Unknown Source)
at org.apache.torque.Torque.getDB(Unknown Source)
at org.apache.torque.util.BasePeer.createQueryString(Unknown Source)
.........
And this is my file torque.properties
# -
# $Id: Torque.properties,v 1.1.1.1 2002/07/08 07:58:20 james Exp $
#
# This is the configuration filefor 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 Log4Jfor all Torque logging and we embed the log4j
# properties within our application configuration.
# -
# This first category is required and the category
# must be named'default'. This is usedfor all logging
# where an explicit category is not specified.
log4j.category.default=DEBUG, stocktrack
log4j.category.stocktrack=DEBUG, stocktrack
log4j.category.org.apache=INFO, stocktrack
log4j.appender.stocktrack=org.apache.log4j.ConsoleAppender
-
#
# T O R Q U E P R O P E R T I E S
#
# -
torque.database.default=stocktrack
torque.database.stocktrack.adapter=mysql
torque.dsfactory.stocktrack.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
torque.dsfactory.stocktrack.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.stocktrack.connection.url = jdbc:mysql://localhost:3306/stocktrack
# Beware of such settings! I use it simply becausethis is thedefault mysql configuration and will workfor allmost everyone!
torque.dsfactory.stocktrack.connection.user = root
torque.dsfactory.stocktrack.connection.password = toto
# The number of database connections to cache per ConnectionPool
# instance (specified per database).
torque.database.stocktrack.maxConnections=80
torque.database.stocktrack.expiryTime=3600000
torque.database.connectionWaitTimeout=10000
torque.database.logInterval=100000

