db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Sean Gilligan" <Sean_Gilli...@catalla.com>
Subject Torque using Tomcat
Date Thu, 16 Dec 2004 00:06:56 GMT
I'm using Torque 3.1.1 with Tomcat 5.0.28 and MySQL.  In a Tomcat context.xml file I've defined
a JNDI DataSource and in torque.prorperties the JndiDataSourceFactory factory is being used.
 The webapp works fine until the webapp is realoaded.  The first database access after a reload
gives this stack trace:

Caused by: java.lang.NullPointerException: There was no DataSourceFactory configured for the
connection my_om
        at org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:711)
        at org.apache.torque.Torque.getConnection(Torque.java:268)
        at org.apache.torque.util.Transaction.beginOptional(Transaction.java:80)
        at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1195)

Any ideas?

Thanks,

Sean


-- 
---------------------------------------------------------------------------
M. Sean Gilligan                    : 831-466-9788 x11
---------------------------------------------------------------------------

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