hi,all
I use derby with Tomcat on aix5.3.
It's run as a jdbc embedded program.
When I startup Tomcat. Derby can't create it's database.

It's confused me for several days. thanks all!!!


some logs in derby.log with below:


--------------------------------------------------------------
ERROR 40XT1: An exception was thrown during transaction commit.
        at org.apache.derby.iapi.error.StandardException.newException(StandardException.java)
        at org.apache.derby.impl.store.raw.xact.Xact.preComplete(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.prepareCommit(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.commit(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.commit(Xact.java)
        at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(LogToFile.java)
        at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(LogToFile.java)
        at org.apache.derby.impl.store.raw.RawStore.stop(RawStore.java)
        at org.apache.derby.impl.services.monitor.TopService.stop(TopService.java)
        at org.apache.derby.impl.services.monitor.TopService.shutdown(TopService.java)
        at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java)
        at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(BaseMonitor.java)
        at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Monitor.java)
        at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java)
        at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java)
        at org.apache.derby.jdbc.Driver169.connect(Driver169.java)
        at java.sql.DriverManager.getConnection(DriverManager.java:572)
        at java.sql.DriverManager.getConnection(DriverManager.java:218)
        at gxlu.bizservice.ifc.webservice.cache.util.DerbyCacheUtil.<init>(DerbyCacheUtil.java:19)
        at gxlu.bizservice.ifc.webservice.cache.util.DerbyCacheUtil.<clinit>(DerbyCacheUtil.java:11)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
        at gxlu.bizservice.ifc.webservice.cache.CRMOrderCache.<init>(CRMOrderCache.java:34)
        at gxlu.bizservice.ifc.webservice.SPSOrderServer.<init>(SPSOrderServer.java:56)
        at gxlu.bizservice.ifc.webservice.SPSService.<init>(SPSService.java:109)
        at gxlu.bizservice.ifc.webservice.SPSService.getInstance(SPSService.java:46)
        at oss.interfaces.bss.Sps2CrmService.<init>(Sps2CrmService.java:20)
        at java.lang.Class.newInstanceImpl(Native Method)
"derby.log" 326 lines, 25097 characters
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
============= begin nested exception, level (1) ===========
java.lang.AbstractMethodError: org/apache/derby/iapi/services/locks/LockFactory.unlockGroup(Ljava/lang/Object;Ljava/lang/Obje
ct;)V
        at org.apache.derby.impl.store.raw.xact.Xact.releaseAllLocks(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.postComplete(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.completeCommit(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.commit(Xact.java)
        at org.apache.derby.impl.store.raw.xact.Xact.commit(Xact.java)
        at org.apache.derby.impl.store.access.RAMTransaction.commit(RAMTransaction.java)
        at org.apache.derby.impl.store.access.RAMAccessManager.getAndNameTransaction(RAMAccessManager.java)
        at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java)
        at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java)
        at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java)
        at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java)
--
Your Sincere,
Yan Jinghui @ Shanghai