Something is adding a dependency on system-database config from your
client config, and it can't run in the client.... there's no derby
gbean running. I think that if you look in client.log, possibly
after turning up logging to debug or maybe trace, you should see some
indication of the dependencies that are causing this. Then you get
to try to figure out how to prevent the dependency getting added :-)
I used to use the debugger in the client for figuring out what is
getting started but IIRC I added a logging monitor. There should be
some classloader parent info that might also be helpful.
Hope this helps
david jencks
On May 18, 2007, at 11:30 PM, Tim McConnell wrote:
> Hi, I'm trying to invoke an EJB with an application client using
> CORBA. However, when I invoke my client I'm getting a very
> perplexing exception which I've not seen before. Does anyone have
> any idea what might be causing this ?? It seems to somehow relate
> to the system-database which I'm not even using. Thanks for any
> assistance. Tim
>
> C:\TEMP\TRUNK\geronimo-tomcat6-jee5-2.0-SNAPSHOT>java -
> Djava.endorsed.dirs=lib/endorsed -jar bin\client.jar
> org.apache.geronimo.samples/corba-hello-world-client/2.0-SNAPSHOT/car
>
> 02:18:39,734 INFO [CommandLine] Client startup begun
> 02:18:45,140 ERROR [MCFConnectionInterceptor] Error occurred
> creating ManagedConnection for
> org.apache.geronimo.connector.outbound.ConnectionInfo@ff634f
> javax.resource.spi.ResourceAdapterInternalException: Unable to
> obtain physical connection to
> org.apache.derby.jdbc.EmbeddedXADataSource@1152c0e
> at
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnectio
> n(AbstractXADataSourceMCF.java:76)
> at
> org.tranql.connector.derby.EmbeddedXAMCF.createManagedConnection
> (EmbeddedXAMCF.java:52)
> at
> org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getCon
> nection(MCFConnectionInterceptor.java:48)
> at
> org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.
> getConnection(XAResourceInsertionInterceptor.java:41)
> at
> org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor
> .internalGetConnection(SinglePoolConnectionInterceptor.java:66)
> at
> org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInt
> erceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:
> 78)
> at
> org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor
> .getConnection(TransactionEnlistingInterceptor.java:46)
> at
> org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.g
> etConnection(TransactionCachingInterceptor.java:95)
> at
> org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.get
> Connection(ConnectionHandleInterceptor.java:43)
> at
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection
> (TCCLInterceptor.java:39)
> at
> org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.g
> etConnection(ConnectionTrackingInterceptor.java:66)
> at
> org.apache.geronimo.connector.outbound.AbstractConnectionManager.alloc
> ateConnection(AbstractConnectionManager.java:61)
> at org.tranql.connector.jdbc.DataSource.getConnection
> (DataSource.java:56)
> at $javax.sql.DataSource$$FastClassByCGLIB$$6525cafd.invoke
> (<generated>)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
> at
> org.apache.geronimo.connector.ConnectorMethodInterceptor.intercept
> (ConnectorMethodInterceptor.java:54)
> at $javax.sql.DataSource$$EnhancerByCGLIB$
> $de67a1d6.getConnection(<generated>)
> at
> org.apache.geronimo.timer.jdbc.JDBCWorkerPersistence.execSQL
> (JDBCWorkerPersistence.java:315)
> at
> org.apache.geronimo.timer.jdbc.JDBCWorkerPersistence.<init>
> (JDBCWorkerPersistence.java:68)
> at
> org.apache.geronimo.timer.jdbc.JDBCStoreThreadPooledNonTransactionalTi
> mer.<init>(JDBCStoreThreadPooledNonTransactionalTimer.java:44)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance
> (Constructor.java:494)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance
> (GBeanInstance.java:936)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:267)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
> (GBeanInstanceState.java:102)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start
> (GBeanInstance.java:529)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart
> (GBeanDependency.java:111)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget
> (GBeanDependency.java:146)
> at org.apache.geronimo.gbean.runtime.GBeanDependency
> $1.running(GBeanDependency.java:120)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEven
> t(BasicLifecycleMonitor.java:173)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300
> (BasicLifecycleMonitor.java:41)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor
> $RawLifecycleBroadcaster.fireRunningEvent
> (BasicLifecycleMonitor.java:251)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:292)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
> (GBeanInstanceState.java:102)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start
> (GBeanInstance.java:529)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart
> (GBeanDependency.java:111)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget
> (GBeanDependency.java:146)
> at org.apache.geronimo.gbean.runtime.GBeanDependency
> $1.running(GBeanDependency.java:120)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEven
> t(BasicLifecycleMonitor.java:173)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300
> (BasicLifecycleMonitor.java:41)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor
> $RawLifecycleBroadcaster.fireRunningEvent
> (BasicLifecycleMonitor.java:251)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:292)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
> (GBeanInstanceState.java:102)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive
> (GBeanInstanceState.java:124)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive
> (GBeanInstance.java:543)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean
> (BasicKernel.java:379)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration
> GBeans(ConfigurationUtil.java:437)
> at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start
> (KernelConfigurationManager.java:188)
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf
> iguration(SimpleConfigurationManager.java:530)
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$
> $FastClassByCGLIB$$ce77a924.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
> (FastMethodInvoker.java:38)
> at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
> (GBeanOperation.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
> (GBeanInstance.java:820)
> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke
> (RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
> (RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
> (ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.kernel.config.EditableConfigurationManager$
> $EnhancerByCGLIB$$77a15d7d.startConfiguration(<generated>)
> at
> org.apache.geronimo.system.main.CommandLine.loadConfigurations
> (CommandLine.java:188)
> at
> org.apache.geronimo.system.main.CommandLine.invokeMainGBean
> (CommandLine.java:98)
> at
> org.apache.geronimo.system.main.ClientCommandLine.startClient
> (ClientCommandLine.java:77)
> at org.apache.geronimo.system.main.ClientCommandLine.execute
> (ClientCommandLine.java:63)
> at
> org.apache.geronimo.system.main.EmbeddedClientCommandLine.execute
> (EmbeddedClientCommandLine.java:43)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main
> (MainConfigurationBootstrapper.java:45)
> at org.apache.geronimo.cli.AbstractCLI.executeMain
> (AbstractCLI.java:67)
> at org.apache.geronimo.cli.client.ClientCLI.main
> (ClientCLI.java:30)
> Caused by: java.sql.SQLException: Failed to start database
> 'SystemDatabase', see the next exception for details.
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException
> (Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException
> (Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException
> (Unknown Source)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException
> (Unknown Source)
> at
> org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(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.derby.jdbc.EmbeddedXADataSource.setupResourceAdapter
> (Unknown Source)
> at
> org.apache.derby.jdbc.EmbeddedXADataSource.getXAConnection(Unknown
> Source)
> at
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnectio
> n(AbstractXADataSourceMCF.java:74)
> ... 67 more
> 02:18:45,140 ERROR [GBeanInstanceState] Error while starting; GBean
> is now in the FAILED state:
> abstractName="org.apache.geronimo.configs/system-database/2.0-
> SNAPSHOT/car?
> J2EEApplication=null,ResourceAdapterModule=org.apache.geronimo.configs
> /system-database/2.0-SNAPSHOT/
> car,j2eeType=GBean,name=NonTransactionalThreadPooledTimer"
> java.sql.SQLException: Failed to start database 'SystemDatabase',
> see the next exception for details.
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException
> (Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException
> (Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException
> (Unknown Source)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException
> (Unknown Source)
> at
> org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(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.derby.jdbc.EmbeddedXADataSource.setupResourceAdapter
> (Unknown Source)
> at
> org.apache.derby.jdbc.EmbeddedXADataSource.getXAConnection(Unknown
> Source)
> at
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnectio
> n(AbstractXADataSourceMCF.java:74)
> at
> org.tranql.connector.derby.EmbeddedXAMCF.createManagedConnection
> (EmbeddedXAMCF.java:52)
> at
> org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getCon
> nection(MCFConnectionInterceptor.java:48)
> at
> org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.
> getConnection(XAResourceInsertionInterceptor.java:41)
> at
> org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor
> .internalGetConnection(SinglePoolConnectionInterceptor.java:66)
> at
> org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInt
> erceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:
> 78)
> at
> org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor
> .getConnection(TransactionEnlistingInterceptor.java:46)
> at
> org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.g
> etConnection(TransactionCachingInterceptor.java:95)
> at
> org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.get
> Connection(ConnectionHandleInterceptor.java:43)
> at
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection
> (TCCLInterceptor.java:39)
> at
> org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.g
> etConnection(ConnectionTrackingInterceptor.java:66)
> at
> org.apache.geronimo.connector.outbound.AbstractConnectionManager.alloc
> ateConnection(AbstractConnectionManager.java:61)
> at org.tranql.connector.jdbc.DataSource.getConnection
> (DataSource.java:56)
> at $javax.sql.DataSource$$FastClassByCGLIB$$6525cafd.invoke
> (<generated>)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
> at
> org.apache.geronimo.connector.ConnectorMethodInterceptor.intercept
> (ConnectorMethodInterceptor.java:54)
> at $javax.sql.DataSource$$EnhancerByCGLIB$
> $de67a1d6.getConnection(<generated>)
> at
> org.apache.geronimo.timer.jdbc.JDBCWorkerPersistence.execSQL
> (JDBCWorkerPersistence.java:315)
> at
> org.apache.geronimo.timer.jdbc.JDBCWorkerPersistence.<init>
> (JDBCWorkerPersistence.java:68)
> at
> org.apache.geronimo.timer.jdbc.JDBCStoreThreadPooledNonTransactionalTi
> mer.<init>(JDBCStoreThreadPooledNonTransactionalTimer.java:44)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance
> (Constructor.java:494)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance
> (GBeanInstance.java:936)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:267)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
> (GBeanInstanceState.java:102)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start
> (GBeanInstance.java:529)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart
> (GBeanDependency.java:111)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget
> (GBeanDependency.java:146)
> at org.apache.geronimo.gbean.runtime.GBeanDependency
> $1.running(GBeanDependency.java:120)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEven
> t(BasicLifecycleMonitor.java:173)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300
> (BasicLifecycleMonitor.java:41)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor
> $RawLifecycleBroadcaster.fireRunningEvent
> (BasicLifecycleMonitor.java:251)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:292)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
> (GBeanInstanceState.java:102)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start
> (GBeanInstance.java:529)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart
> (GBeanDependency.java:111)
> at
> org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget
> (GBeanDependency.java:146)
> at org.apache.geronimo.gbean.runtime.GBeanDependency
> $1.running(GBeanDependency.java:120)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEven
> t(BasicLifecycleMonitor.java:173)
> at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300
> (BasicLifecycleMonitor.java:41)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor
> $RawLifecycleBroadcaster.fireRunningEvent
> (BasicLifecycleMonitor.java:251)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:292)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
> (GBeanInstanceState.java:102)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive
> (GBeanInstanceState.java:124)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive
> (GBeanInstance.java:543)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean
> (BasicKernel.java:379)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration
> GBeans(ConfigurationUtil.java:437)
> at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start
> (KernelConfigurationManager.java:188)
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf
> iguration(SimpleConfigurationManager.java:530)
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$
> $FastClassByCGLIB$$ce77a924.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
> (FastMethodInvoker.java:38)
> at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
> (GBeanOperation.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
> (GBeanInstance.java:820)
> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke
> (RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
> (RawOperationInvoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
> (ProxyMethodInterceptor.java:96)
> at
> org.apache.geronimo.kernel.config.EditableConfigurationManager$
> $EnhancerByCGLIB$$77a15d7d.startConfiguration(<generated>)
> at
> org.apache.geronimo.system.main.CommandLine.loadConfigurations
> (CommandLine.java:188)
> at
> org.apache.geronimo.system.main.CommandLine.invokeMainGBean
> (CommandLine.java:98)
> at
> org.apache.geronimo.system.main.ClientCommandLine.startClient
> (ClientCommandLine.java:77)
> at org.apache.geronimo.system.main.ClientCommandLine.execute
> (ClientCommandLine.java:63)
> at
> org.apache.geronimo.system.main.EmbeddedClientCommandLine.execute
> (EmbeddedClientCommandLine.java:43)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main
> (MainConfigurationBootstrapper.java:45)
> at org.apache.geronimo.cli.AbstractCLI.executeMain
> (AbstractCLI.java:67)
> at org.apache.geronimo.cli.client.ClientCLI.main
> (ClientCLI.java:30)
>
|