Hi Bob,

I'm not using Torque with Struts (using Turbine) but I have seen the 
following before:

> WARN - IDBroker is being used with db 'biztracker', 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.

What solved it for me was that I put the Torque.jar file in the 
webapplication's lib directory, ie

$TOMCAT_HOME/webapps/<appname>/WEB-INF/lib/Torque.jar

When I did this, the above warning disappeared.

In addition I also noticed the following problem when using Tomcat 
v4.1.12 (please keep in mind I'm using Turbine and postgresql, so this 
might not apply to you):

-----------------------------------------------------
1142 [Thread-4] ERROR apache.torque  - Property: driver value: 
org.postgresql.Driver is not supported by DataSource: 
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
1182 [Thread-4] ERROR apache.torque  -
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1650)
        at 
org.apache.torque.dsfactory.AbstractDataSourceFactory.setProperty(AbstractDataSourceFactory.java:112)
        at 
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:123)
        at 
org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:103)
        at org.apache.torque.Torque.initDataSourceFactories(Torque.java:318)
        at org.apache.torque.Torque.initialize(Torque.java:242)
        at 
org.apache.stratum.component.ComponentLoader.loadComponent(ComponentLoader.java:220)
        at 
org.apache.stratum.component.ComponentLoader.load(ComponentLoader.java:179)
        at 
org.apache.turbine.services.component.TurbineComponentService.init(TurbineComponentService.java:163)
        at 
org.apache.turbine.services.TurbineBaseService.init(TurbineBaseService.java:108)
        at 
org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.java:149)
        at 
org.apache.turbine.services.BaseServiceBroker.doInitService(BaseServiceBroker.java:224)
        at 
org.apache.turbine.services.BaseServiceBroker.initServices(BaseServiceBroker.java:193)
        at org.apache.turbine.Turbine.init(Turbine.java:257)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
        at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
        at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
        at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:130)
        at 
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.setDriver(DriverAdapterCPDS.java:441)
        ... 48 more
-----------------------------------------------------

When I "downgraded" back to Tomcat v4.0.6, the above problem 
disappeared.  I don't have time to debug the Torque JAR or commons-dbcp 
JAR file to figure out the problem, but will follow this up when I have 
a bit more time.

Hope this helps.

cheers,
-- 
R E D S H E R I F F
C.P. Lim - Software Engineer
Level 1, 10 Queens Road    +61 3 9864 0733 tel
Melbourne VIC              +61 3 9864 0778 fax
Australia                  +61 413 781 846 mob

This message and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you are not the intended recipient, you are hereby 
notified that any use or dissemination of this communication is strictly 
prohibited. If you have received this message in error please notify us 
immediately by return email or telephone +61 (3) 9659 0432, then delete 
this message. Any views expressed in this message are those of the 
individual sender and many not necessarily reflect the views of Red 
Sheriff.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to