db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Femi Aluko <ifem...@yahoo.com>
Subject Re: Torque on Tomcat: Exception: DataSourceFactory not configured
Date Mon, 15 Mar 2004 16:07:14 GMT
Hello Drake,
  You did not set the datasource configurations in the Torque.properties file.
  If u would be using commons-dbcp  just uncomment and set all the values under the heading
here is a sample 

## Using commons-dbcp 





#torque.dsfactory.hospital.pool.validationQuery=SELECT 1

torque.dsfactory.hospital.connection.driver = org.gjt.mm.mysql.Driver

torque.dsfactory.hospital.connection.url = jdbc:mysql://localhost:3306/bookstore

torque.dsfactory.hospital.connection.user = ur value

torque.dsfactory.hospital.connection.password = ur value




Drake Philbrook <dsp@graphtek.com> wrote:


RedHat Linux Enterprise V3
MySql V3.23
Tomcat 4.0.6

I followed the instructions to install Torque in a Web Application
running on Tomcat4 that I found at

I see these entries during initialization:

[DEBUG] TorqueInstance -
[DEBUG] TorqueInstance -
[DEBUG] TorqueInstance - -initialize()
[DEBUG] TorqueInstance -
[DEBUG] TorqueInstance -
[WARN] TorqueInstance - -Databases defined but no adapter configurations
[DEBUG] TorqueInstance -
[DEBUG] TorqueInstance - -Adding a dummy entry for default, mapped onto
Ajp13Connector[8009] Opening server socket on host IP address

When I try to make a Torque call, I get this output:

[DEBUG] TorqueInstance - -getConfiguration() =
[DEBUG] IDBroker - -IDBroker thread was started.
[WARN] IDBroker - -IDBroker is being used with db 'cms-cms', which does
not support transactions. IDBroker attempts to use transactions to limit
the possibility of duplicate key generation. Without transactions,
duplicate key generation is possible if multiple JVMs are used or other
means are used to write to the database.

DEBUG Ajp13Processor[8009][2] com.dsp.cms.torque.UsersPeer -
UsersPeer.addUser Exception: java.lang.NullPointerException: There was
no DataSourceFactory configured for the connection cms-cms

Any help is appreciated.

BTW: Is there a searchable list of issues about Torque? Maybe these
issues have been resolved and I just can't find the answers.


Drake Philbrook
73241 Hwy 111
Suite 2B
Palm Desert, CA 92260
760-341-4583 - Office
760-898-4413 - Cell
760-341-9285 - Fax
dsp@graphtek.com - Email

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message