activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dege <deg...@pointclickcare.com>
Subject derby db failing on restart
Date Mon, 21 Aug 2006 20:25:46 GMT

We are developing on Resin 3.x using spring to configure ActiveMQ 4. 
Whenever we do a hot deploy (deploy a class to the webapps/ROOT/WEB-INF
directory while resin is running) resin has to unload and then reload the
spring context.  However, when it does this the derby db used for ActiveMQ's
journaling fails to restart resulting in JMS no longer functioning.

 In the activemq config file I have the  useShutdownHook flag set to true
but it only seems to matter when you actually shutdown Resin as opposed to
having the spring context reloaded.

I'm assuming its related to  the derby database not being notified that a
restart has happened but I'm not sure how to fix this.  Anyone have any
ideas? 

A portion of the stack trace is below.

21/08/2006 15:58:44.857 [resin-21] DEBUG Could not get JDBC connection:
Failed to start database 'derbydb', see the next
 exception for details., due to: Another instance of Derby may have already
booted the database C:\mpgi_staging\PCC\pcc_
messages\journal\derbydb.
ERROR XSDB6: Another instance of Derby may have already booted the database
C:\mpgi_staging\PCC\pcc_messages\journal\der
bydb.
        at
org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown
Source)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown
Source)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown
Source)
        at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown
Source)
        at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown
Source)
        at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
        at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown
Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown
Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown
Source)
        at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown
Source)
        at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown
Source)
        at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown
Source)
        at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:54)
        at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:229)
        at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:213)
        at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:139)
        at
org.apache.activemq.store.journal.JournalPersistenceAdapter.start(JournalPersistenceAdapter.java:215)
        at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:930)
        at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:888)
        at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:458)
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:361)
        at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:43)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
-- 
View this message in context: http://www.nabble.com/derby-db-failing-on-restart-tf2142524.html#a5914237
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message