RE: torque failing within junit "no DataSourceFactory configured "
Found the problem. It turned out to be a couple of the properties I had in the properties file were invalid and it was giving me misleading error messages because someone else's code was throwing away the exception. The real error message was nosuchmethod. Thanks, Angela Day -Original Message- From: Thomas Fischer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 2:46 AM To: Apache Torque Users List Subject: RE: torque failing within junit "no DataSourceFactory configured " Hi, which Torque version are you using ? Cannot find anything like " initDataSourceFactories" or line 318 in Torque.java neither in 3.1 nor in 3.1.1source. Thomas Angela Day <[EMAIL PROTECTED]> schrieb am 16.11.2004 20:10:27: > I am getting this confirmation in the logs: > > Time: 12:57:05 PM Priority: DEBUG Thread: main NDC: null Category: > org.apache.torque.Torque Location: > org.apache.torque.Torque.initDataSourceFactories(Torque.java:318) Message: > handle: default DataSourceFactory: > org.apache.torque.dsfactory.TorqueDataSourceFactory > Throwable: > null > > Angela Day > > > -Original Message- > From: Angela Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 16, 2004 1:09 PM > To: 'Apache Torque Users List' > Subject: torque failing within junit "no DataSourceFactory configured" > > Torque works great while running the app or while running the junit tests > from the command line, but within eclipse, running a junit test, I get the > error "no DataSourceFactory configured for connection default". It fails on > the Torque.getConnection command. I have reviewed all of the junit and > torque archives and have followed all of the advice, but there is not a > change. > > I only have one commons-configuration.jar in my path. I have > > torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourc > eFactory > torque.dsfactory.default.pool.defaultMaxConnections=10 > torque.dsfactory.default.pool.maxExpiryTime=3600 > torque.dsfactory.default.pool.connectionWaitTimeout=10 > torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver > torque.dsfactory.default.connection.url=jdbc:oracle:thin:[EMAIL PROTECTED] > .tx.us:1521:dev > torque.dsfactory.default.connection.user = xxx > torque.dsfactory.default.connection.password = xxx > torque.database.default.adapter=oracle > > defined in the Torque.properties file. > > Any help would be appreciated. I am frustrated. > > Thanks, > > Angela Day > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: torque failing within junit "no DataSourceFactory configured "
Found the problem. It turned out to be a couple of the properties I had in the properties files were invalid and it was giving me misleading error messages because someone else's code was throwing away the exception. The real error message was nosuchmethod. Thanks, Angela Day -Original Message- From: Thomas Fischer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 2:46 AM To: Apache Torque Users List Subject: RE: torque failing within junit "no DataSourceFactory configured " Hi, which Torque version are you using ? Cannot find anything like " initDataSourceFactories" or line 318 in Torque.java neither in 3.1 nor in 3.1.1source. Thomas Angela Day <[EMAIL PROTECTED]> schrieb am 16.11.2004 20:10:27: > I am getting this confirmation in the logs: > > Time: 12:57:05 PM Priority: DEBUG Thread: main NDC: null Category: > org.apache.torque.Torque Location: > org.apache.torque.Torque.initDataSourceFactories(Torque.java:318) Message: > handle: default DataSourceFactory: > org.apache.torque.dsfactory.TorqueDataSourceFactory > Throwable: > null > > Angela Day > > > -Original Message- > From: Angela Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 16, 2004 1:09 PM > To: 'Apache Torque Users List' > Subject: torque failing within junit "no DataSourceFactory configured" > > Torque works great while running the app or while running the junit tests > from the command line, but within eclipse, running a junit test, I get the > error "no DataSourceFactory configured for connection default". It fails on > the Torque.getConnection command. I have reviewed all of the junit and > torque archives and have followed all of the advice, but there is not a > change. > > I only have one commons-configuration.jar in my path. I have > > torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourc > eFactory > torque.dsfactory.default.pool.defaultMaxConnections=10 > torque.dsfactory.default.pool.maxExpiryTime=3600 > torque.dsfactory.default.pool.connectionWaitTimeout=10 > torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver > torque.dsfactory.default.connection.url=jdbc:oracle:thin:[EMAIL PROTECTED] > .tx.us:1521:dev > torque.dsfactory.default.connection.user = xxx > torque.dsfactory.default.connection.password = xxx > torque.database.default.adapter=oracle > > defined in the Torque.properties file. > > Any help would be appreciated. I am frustrated. > > Thanks, > > Angela Day > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: torque failing within junit "no DataSourceFactory configured "
Hi, which Torque version are you using ? Cannot find anything like " initDataSourceFactories" or line 318 in Torque.java neither in 3.1 nor in 3.1.1source. Thomas Angela Day <[EMAIL PROTECTED]> schrieb am 16.11.2004 20:10:27: > I am getting this confirmation in the logs: > > Time: 12:57:05 PM Priority: DEBUG Thread: main NDC: null Category: > org.apache.torque.Torque Location: > org.apache.torque.Torque.initDataSourceFactories(Torque.java:318) Message: > handle: default DataSourceFactory: > org.apache.torque.dsfactory.TorqueDataSourceFactory > Throwable: > null > > Angela Day > > > -Original Message- > From: Angela Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 16, 2004 1:09 PM > To: 'Apache Torque Users List' > Subject: torque failing within junit "no DataSourceFactory configured" > > Torque works great while running the app or while running the junit tests > from the command line, but within eclipse, running a junit test, I get the > error "no DataSourceFactory configured for connection default". It fails on > the Torque.getConnection command. I have reviewed all of the junit and > torque archives and have followed all of the advice, but there is not a > change. > > I only have one commons-configuration.jar in my path. I have > > torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourc > eFactory > torque.dsfactory.default.pool.defaultMaxConnections=10 > torque.dsfactory.default.pool.maxExpiryTime=3600 > torque.dsfactory.default.pool.connectionWaitTimeout=10 > torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver > torque.dsfactory.default.connection.url=jdbc:oracle:thin:[EMAIL PROTECTED] > .tx.us:1521:dev > torque.dsfactory.default.connection.user = xxx > torque.dsfactory.default.connection.password = xxx > torque.database.default.adapter=oracle > > defined in the Torque.properties file. > > Any help would be appreciated. I am frustrated. > > Thanks, > > Angela Day > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: torque failing within junit "no DataSourceFactory configured "
I am getting this confirmation in the logs: Time: 12:57:05 PM Priority: DEBUG Thread: main NDC: null Category: org.apache.torque.Torque Location: org.apache.torque.Torque.initDataSourceFactories(Torque.java:318) Message: handle: default DataSourceFactory: org.apache.torque.dsfactory.TorqueDataSourceFactory Throwable: null Angela Day -Original Message- From: Angela Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 1:09 PM To: 'Apache Torque Users List' Subject: torque failing within junit "no DataSourceFactory configured" Torque works great while running the app or while running the junit tests from the command line, but within eclipse, running a junit test, I get the error "no DataSourceFactory configured for connection default". It fails on the Torque.getConnection command. I have reviewed all of the junit and torque archives and have followed all of the advice, but there is not a change. I only have one commons-configuration.jar in my path. I have torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourc eFactory torque.dsfactory.default.pool.defaultMaxConnections=10 torque.dsfactory.default.pool.maxExpiryTime=3600 torque.dsfactory.default.pool.connectionWaitTimeout=10 torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver torque.dsfactory.default.connection.url=jdbc:oracle:thin:[EMAIL PROTECTED] .tx.us:1521:dev torque.dsfactory.default.connection.user = xxx torque.dsfactory.default.connection.password = xxx torque.database.default.adapter=oracle defined in the Torque.properties file. Any help would be appreciated. I am frustrated. Thanks, Angela Day - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]