db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tebano, Vincent A" <vincent.a.teb...@lmco.com>
Subject RE: Torque on Tomcat: Exception: DataSourceFactory not configured
Date Mon, 15 Mar 2004 15:33:57 GMT
I have the same problem with the datasourcefactory being configured for
MS SQL 2000.

My torque.properties file is located in the
jetspeed-1.4\webapp\WEB-INF\conf directory.

And here are my contents:

torque.applicationRoot = .
torque.defaults.pool.logInterval = 0 
torque.defaults.pool.connectionWaitTimeout = 10 
torque.defaults.pool.defaultMaxConnections = 80 
torque.defaults.pool.maxExpiryTime = 3600 
torque.defaults.connection.driver =
com.microsoft.jdbc.sqlserver.SQLServerDriver
torque.defaults.connection.url =
jdbc:microsoft:sqlserver:192.168.66.18:1433;DatabaseName=vtest;SelectMet
hod=cursor
torque.defaults.connection.user = <user>
torque.defaults.connection.password = <password>

torque.database.default=vtest
torque.database.vtest.adapter=mssql 
torque.dsfactory.vtest.factory=org.apache.torque.dsfactory.SharedPoolDat
aSourceFactory
torque.dsfactory.vtest.pool.defaultMaxActive=10
torque.dsfactory.vtest.pool.testOnBorrow=true
torque.dsfactory.vtest.pool.validationQuery=SELECT 1



Can anyone help.

Vince


-----Original Message-----
From: Andras Balogh [mailto:andras@reea.net] 
Sent: Monday, March 15, 2004 10:27 AM
To: Apache Torque Users List
Subject: Re: Torque on Tomcat: Exception: DataSourceFactory not
configured

Hello Drake,

I think than this line is missing:
torque.database.cms-cms.adapter=mysql
Add this after
torque.database.default = cms-cms

Regards,
Andras.

Drake Philbrook wrote:

>Hi Andras,
>
>Torque.properties lives in /WEB-INF/classes.
>
>Here is the content...
>
>log4j.rootCategory=DEBUG, default
>log4j.appender.default=org.apache.log4j.RollingFileAppender
>log4j.appender.default.MaxFileSize=1024KB
>log4j.appender.default.file=/var/tomcat4/logs/torque.log
>log4j.appender.default.MaxBackupIndex=1
>log4j.appender.default.layout = org.apache.log4j.SimpleLayout
>
>torque.database.default = cms-cms
>torque.database.cms-cms.driver = org.gjt.mm.mysql.Driver
>torque.database.cms-cms.url = jdbc:mysql://127.0.0.1/cms-cms
>torque.database.cms-cms.username = admin
>torque.database.cms-cms.password = cms 
>
>Thanks for your help,
>
>Drake
>
>  
>



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


---------------------------------------------------------------------
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