Thomas Vandahl wrote:
Thomas Fischer wrote:
Sorry for not knowing what I'm talking about, but does this also fix the
Turbine problem ?
No it doesn't. I tried to set up the original environment to reproduce
the failure but everything works for me. Scott promised to provide me
with more information from his setup RSN. However I don't think the two
problems are directly related.
I have reconstructed my environment today and with 3.3.RC2 it is
certainly still running into the problem whereby TorqueComponent is
decommissioned by avalon immediately following initialization thus:
2007-04-17 15:09:06,796 INFO [main ] services.BaseServiceBroker -
Start Initializing service (early): AvalonComponentService
2007-04-17 15:09:06,828 DEBUG [main ]
avaloncomponent.TurbineAvalonComponentService - Config File:
S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF\conf\componentConfiguration.xml
2007-04-17 15:09:06,828 DEBUG [main ]
avaloncomponent.TurbineAvalonComponentService - Role File:
S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF\conf\roleConfiguration.xml
2007-04-17 15:09:06,890 DEBUG [main ] avalon - added Role
org.apache.torque.avalon.Torque with shorthand torque for
org.apache.torque.avalon.TorqueComponent
2007-04-17 15:09:06,921 DEBUG [main ]
avaloncomponent.TurbineAvalonComponentService - Application Root is
S:\eclipse-workspace\cmes-dev\src\main\webapp
2007-04-17 15:09:06,921 DEBUG [main ] avalon - looking up shorthand
torque, returning org.apache.torque.avalon.Torque
2007-04-17 15:09:06,921 DEBUG [main ] avalon - Adding component
(org.apache.torque.avalon.Torque = org.apache.torque.avalon.TorqueComponent)
2007-04-17 15:09:06,937 DEBUG [main ] avalon - Attempting to get
Handler for role [org.apache.torque.avalon.Torque]
2007-04-17 15:09:06,953 DEBUG [main ] avalon - Handler type =
org.apache.avalon.excalibur.component.DefaultComponentHandler
2007-04-17 15:09:07,000 DEBUG [main ] avalon - ComponentHandler
initialized for: org.apache.torque.avalon.TorqueComponent
2007-04-17 15:09:07,015 DEBUG [main ] avalon - ComponentFactory
creating new instance of org.apache.torque.avalon.TorqueComponent.
2007-04-17 15:09:07,015 DEBUG [main ] avalon - no logger attribute
available, using standard logger
2007-04-17 15:09:07,015 DEBUG [main ] avalon -
configure(torque::<no
value>:@file:/S:/eclipse-workspace/cmes-dev/src/main/webapp/WEB-INF/conf/componentConfiguration.xml:9:10)
2007-04-17 15:09:07,015 DEBUG [main ] avalon - Config File is
S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF/conf/Torque.properties
2007-04-17 15:09:07,015 DEBUG [main ] avalon - initialize()
2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance -ad52
2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance -
init(org.apache.commons.configur
init(S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF/conf/Torque.properties)
2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance -
Config Object is
[EMAIL PROTECTED]@1c8ad52)
2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance -
setConfiguration([EMAIL PROTECTED])
2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance -
initialize()
2007-04-17 15:09:07,031 DEBUG [main ] torque.TorqueInstance -
setConfiguration([EMAIL PROTECTED])
2007-04-17 15:09:07,031 DEBUG [main ] torque.TorqueInstance -
initAdapters([EMAIL PROTECTED])
2007-04-17 15:09:07,078 DEBUG [main ] torque.TorqueInstance -
Adding postgresql -> ppdb as Adapter
2007-04-17 15:09:07,093 DEBUG [main ] torque.TorqueInstance -
initDataSourceFactories([EMAIL PROTECTED])
2007-04-17 15:09:07,093 DEBUG [main ] torque.TorqueInstance -
handle: ppdb DataSourceFactory:
org.apache.torque.dsfactory.SharedPoolDataSourceFactory
2007-04-17 15:09:07,109 DEBUG [main ] torque.TorqueInstance -
getConfiguration() =
[EMAIL PROTECTED]
2007-04-17 15:09:07,109 DEBUG [main ]
dsfactory.AbstractDataSourceFactory - Starting initCPDS
2007-04-17 15:09:07,125 DEBUG [main ] torque.TorqueInstance -
getConfiguration() =
[EMAIL PROTECTED]
2007-04-17 15:09:07,125 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
applyConfiguration([EMAIL PROTECTED],
[EMAIL PROTECTED])
2007-04-17 15:09:07,125 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
applyConfiguration([EMAIL PROTECTED],
[EMAIL PROTECTED])
2007-04-17 15:09:07,250 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
driver, org.postgresql.Driver)
2007-04-17 15:09:07,250 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
url, jdbc:postgresql://127.0.0.1:5432/cmesdev)
2007-04-17 15:09:07,250 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
user, torque)
2007-04-17 15:09:07,250 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
password, (value not logged))
2007-04-17 15:09:07,250 DEBUG [main ]
dsfactory.SharedPoolDataSourceFactory - Starting initJdbc2Pool
2007-04-17 15:09:07,265 DEBUG [main ] torque.TorqueInstance -
getConfiguration() =
[EMAIL PROTECTED]
2007-04-17 15:09:07,265 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
applyConfiguration([EMAIL PROTECTED],
[EMAIL PROTECTED])
2007-04-17 15:09:07,265 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
applyConfiguration([EMAIL PROTECTED],
[EMAIL PROTECTED])
2007-04-17 15:09:07,281 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
maxActive, 10)
2007-04-17 15:09:07,281 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
testOnBorrow, true)
2007-04-17 15:09:07,281 DEBUG [main ]
dsfactory.AbstractDataSourceFactory -
setSimpleProperty([EMAIL PROTECTED],
validationQuery, SELECT 1)
2007-04-17 15:09:07,281 DEBUG [main ] torque.TorqueInstance -
Adding the DatasourceFactory from database ppdb onto database default
2007-04-17 15:09:07,281 INFO [main ]
avaloncomponent.TurbineAvalonComponentService - Lookup for Component
org.apache.torque.avalon.Torque successful
2007-04-17 15:09:07,281 DEBUG [main ] avalon - ComponentFactory
decommissioning instance of org.apache.torque.avalon.TorqueComponent.
2007-04-17 15:09:07,281 DEBUG [main ] avalon - dispose()
2007-04-17 15:09:07,281 INFO [main ] services.BaseServiceBroker -
Finish Initializing service (early): AvalonComponentService
Relevant configuration (tell me if you need anything more):
---- pom.xml ----
<dependency>
<groupId>org.apache.db.torque</groupId>
<artifactId>runtime</artifactId>
<version>3.3-RC2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
---- TurbineResources.properties ----
services.AvalonComponentService.classname=org.apache.turbine.services.avaloncomponent.TurbineAvalonComponentService
services.AvalonComponentService.componentConfiguration =
WEB-INF/conf/componentConfiguration.xml
services.AvalonComponentService.componentRoles =
WEB-INF/conf/roleConfiguration.xml
services.AvalonComponentService.lookup = org.apache.torque.avalon.Torque
---- componentConfiguration.xml ----
<componentConfig>
<torque>
<configfile>WEB-INF/conf/Torque.properties</configfile>
</torque>
</componentConfig>
---- roleConfiguration.xml ----
<role-list>
<role name="org.apache.torque.avalon.Torque"
shorthand="torque"
default-class="org.apache.torque.avalon.TorqueComponent"/>
</role-list>
---- Torque.properties ----
torque.earlyInit = true
torque.database.default = ppdb
torque.database.ppdb.adapter = postgresql
torque.dsfactory.ppdb.factory =
org.apache.torque.dsfactory.SharedPoolDataSourceFactory
torque.dsfactory.ppdb.pool.maxActive = 10
torque.dsfactory.ppdb.pool.testOnBorrow = true
torque.dsfactory.ppdb.pool.validationQuery = SELECT 1
torque.dsfactory.ppdb.connection.driver = org.postgresql.Driver
torque.dsfactory.ppdb.connection.url =
jdbc:postgresql://127.0.0.1:5432/cmesdev
torque.dsfactory.ppdb.connection.user = torque
torque.dsfactory.ppdb.connection.password = ********
torque.manager.useCache = true
So because Torque is shutting down immediately after initialization, any
attempt to retrieve data results in an exception that is ultimately
caused by:
org.apache.torque.TorqueException: Torque is not initialized
Unfortunately I have also run into problems with the work around which
was using your ACSYaafiComponentService class and Yaafi. This one is
even more enigmatic than the ECM issue - I cannot even say that it
relates to the mentioned configuration, all I know is that when I
deployed to production the system would after some time become
unresponsive (no problems are apparent in my development and staging
environments and the problem is certainly not load related). I have
nothing whatsoever to go on - very frustrating. Anyway, this is a
totally different issue.
Let me know if the above enables you to reproduce the problem I am
hitting. I'll cut myself a snapshot of the runtime trunk and try again
and then have a crack at isolating it with my own hellowworld.
Thanks for the help and patience,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]