You will need to show the property arrangements you have tried. And how are you getting torque initialized.
john mcnally On Tue, 2002-07-23 at 22:07, Steven Wells wrote: > I'm using: > jakarta-tomcat-4.1.7-LE-jdk14 > torque-3.0-b3 > mm.mysql-2.0.14 > jakarta-struts-1.1-b1 > jdk1.4 > mySQL > > Bleeding edge I know. > > When I do this: > story.save(); // story is my torque generated obj > > I get this (in the Tomcat console): > Start+44725ms INFO AddStoryForm- Saving story: Steves Story > Start+44785ms WARN IDBroker- IDBroker is being used with db 'XP', which > does not > support transactions. IDBroker attempts to use transactions to limit > the possi > bility of duplicate key generation. Without transactions, duplicate key > generat > ion is possible if multiple JVMs are used or other means are used to > write to th > e database. > Start+44805ms INFO IDBroker- IDBroker thread was started. > Start+44825ms ERROR AddStoryForm- Could not save story > java.lang.NullPointerException: There was no DataSourceFactory > configured for th > e connection XP > at org.apache.torque.Torque.getConnection(Torque.java:900) > at > org.apache.torque.util.BasePeer.beginTransaction(BasePeer.java:368) > at org.xp.story.BaseStory.save(BaseStory.java:445) > at org.xp.story.BaseStory.save(BaseStory.java:429) > at org.xp.story.AddStoryForm.validate(AddStoryForm.java:56) > at > org.apache.struts.action.RequestProcessor.processValidate(RequestProc > essor.java:910) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > va:245) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:110 > 9) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > ETC etc etc.. > > I've tried quite a few things, including: > > 1. Making sure all the .jars are in the right place. > jndi-datasource-examples-howto.html says to put mm.mysql driver, DBCP, > collections and pool jarfiles into $CATALINA_HOME/common/lib. > > 2. Editing Torque.properties like mad: > Following the Torque tutorial using the torque.database. properties, the > jdbc2pool config, and JNDI (following the jdbc2pool-howto.html Torque > doc) > > 3. Using idbroker, native and none as the schema defaultIdMethod. > > So before I delve into the source, can anyone help? > > Thanks. > > Steve > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
