On 12/10/2007, Dave <[EMAIL PROTECTED]> wrote:

[..]
> For more debug output, turn up debugging on task manager like so:
>     log4j.category.org.apache.roller.weblogger.business.runnable=DEBUG
>
> And watch what happens when tasks start and stop.

I've managed to locate the roller logs, and it's reporting:

ERROR 2007-10-12 14:38:27,622 GeronimoLog:error - Problem in doStop of
org.apache.roller/roller/4.0/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/lib/roller-business.jar,WebModule=org.apache.roller/roller/4.0/war,j2eeType=PersistenceUnit,name=RollerPU
<0.9.7-incubating fatal user error>
org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
DataSource class name must be specified in the ConnectionDriverName
property.
        at 
org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:70)
        at 
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:800)
        at 
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:566)
        at 
org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1185)
        at 
org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:450)
        at 
org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:375)
        at 
org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:102)
        at 
org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:79)
        at 
org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:831)
        at 
org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:826)
[...]

It looks like some seems to be some configuration confusion between
Roller's OpenJPA and Geronimo's OpenJPA usage. I'm not sure why the
scheduled tasks can't seem to find the same Datasource name that the
main roller app uses.

Any suggestions welcome. I'll have a look at the code as well.

Cheers.
-- 
Jonathan Chen <[EMAIL PROTECTED]>

Reply via email to