geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: deploy
Date Mon, 16 Apr 2012 14:27:42 GMT
Placing the jar file directly in the repository will not work, as Geronimo
3.0-beta is based on OSGi runtime, so almost all the jar files in that
directory should be bundles.
Please refer to
https://cwiki.apache.org/GMOxDOC30/adding-jars-to-the-geronimo-repository.html#AddingJARstotheGeronimorepository-Updatetherepositorywithnewlibrary
to install Oracle driver to the repository.
Hope it helps !

2012/4/16 Stephen Davidson <steverdavidson@gmail.com>

> Thanks Ivan:
> It is not clear to me how to install a jar from the interface.  But I have
> another clude in what I am seeing when trying to use the datasource link to
> create a pool for an existing entry in the list.
>
> First, I am able to choose the oracle selection that is there -- I placed
> the jar at the following location and changed the name as instructed
> ../repository/oracle/ojdbc14/10g/ojdbc14-10g.jar
>
> Then, in the UI, I was able to select that driver, and was able to run the
> test prior to trying to deploy.  THe test worked, indicating I have
> connectivity to my database.  However, when I deploy, it simply returns me
> to the datasource screen and my new datasource is not there.  In the .out I
> see the following:
>
> 2012-04-16 07:41:57,249 WARN  [ConnectorModuleBuilder] Problem loading
> class: oracle.jdbc.OracleDriver
> java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
>        at
>
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
>        at
>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
>        at
>
> org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.checkClass(ConnectorModuleBuilder.java:1329)
>        at
>
> org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.addOutboundGBeans(ConnectorModuleBuilder.java:1276)
>        at
>
> org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.addConnectorGBeans(ConnectorModuleBuilder.java:921)
>        at
>
> org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.initContext(ConnectorModuleBuilder.java:555)
>        at
>
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:685)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
>        at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
>        at
>
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
>        at
>
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
>        at java.lang.Thread.run(Thread.java:662)
> 2012-04-16 07:41:57,750 ERROR [GBeanInstanceState] Error while starting;
> GBean is now in the FAILED state:
>
> abstractName="console.dbpool/testw/1.0/car?J2EEApplication=null,JCAConnectionFactory=testw,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAManagedConnectionFactory,name=testw"
> javax.resource.spi.InvalidPropertyException: Unable to load driver class:
> oracle.jdbc.OracleDriver
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.setDriver(JDBCDriverMCF.java:154)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.apache.geronimo.gbean.DynamicGBeanDelegate$Operation.invoke(DynamicGBeanDelegate.java:232)
>        at
>
> org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:176)
>        at
>
> org.apache.geronimo.connector.wrapper.outbound.ManagedConnectionFactoryWrapper.setAttribute(ManagedConnectionFactoryWrapper.java:224)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute$DynamicSetterMethodInvoker.invoke(GBeanAttribute.java:419)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.setValue(GBeanAttribute.java:392)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.inject(GBeanAttribute.java:426)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:990)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
>        at
>
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
>        at
>
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
>        at
>
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
>        at
>
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
>        at
>
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:462)
>        at
>
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
>        at
>
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
>        at
>
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:169)
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.loadClass(JDBCDriverMCF.java:321)
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.setDriver(JDBCDriverMCF.java:151)
>        ... 31 more
> 2012-04-16 07:41:57,753 ERROR [GBeanInstanceState] Error while starting;
> GBean is now in the FAILED state:
>
> abstractName="console.dbpool/testw/1.0/car?J2EEApplication=null,JCAConnectionFactory=testw,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAManagedConnectionFactory,name=testw"
> javax.resource.spi.InvalidPropertyException: Unable to load driver class:
> oracle.jdbc.OracleDriver
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.setDriver(JDBCDriverMCF.java:154)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.apache.geronimo.gbean.DynamicGBeanDelegate$Operation.invoke(DynamicGBeanDelegate.java:232)
>        at
>
> org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:176)
>        at
>
> org.apache.geronimo.connector.wrapper.outbound.ManagedConnectionFactoryWrapper.setAttribute(ManagedConnectionFactoryWrapper.java:224)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute$DynamicSetterMethodInvoker.invoke(GBeanAttribute.java:419)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.setValue(GBeanAttribute.java:392)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.inject(GBeanAttribute.java:426)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:990)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
>        at
>
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
>        at
>
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:462)
>        at
>
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
>        at
>
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
>        at
>
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:169)
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.loadClass(JDBCDriverMCF.java:321)
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.setDriver(JDBCDriverMCF.java:151)
>        ... 22 more
> Deployer operation failed: start of console.dbpool/testw/1.0/car failed
> org.apache.geronimo.kernel.config.LifecycleException: start of
> console.dbpool/testw/1.0/car failed
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:718)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
>        at
>
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
> Unknown
> start exception
>        at
>
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:523)
>        at
>
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
>        ... 3 more
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
> Configuration console.dbpool/testw/1.0/car failed to start due to the
> following reasons:
>  The service
>
> J2EEApplication=null,JCAConnectionFactory=testw,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAManagedConnectionFactory,name=testw
> did not start because Unable to load driver class: oracle.jdbc.OracleDriver
> javax.resource.spi.InvalidPropertyException: Unable to load driver class:
> oracle.jdbc.OracleDriver
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.setDriver(JDBCDriverMCF.java:154)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.apache.geronimo.gbean.DynamicGBeanDelegate$Operation.invoke(DynamicGBeanDelegate.java:232)
>        at
>
> org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:176)
>        at
>
> org.apache.geronimo.connector.wrapper.outbound.ManagedConnectionFactoryWrapper.setAttribute(ManagedConnectionFactoryWrapper.java:224)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute$DynamicSetterMethodInvoker.invoke(GBeanAttribute.java:419)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.setValue(GBeanAttribute.java:392)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.inject(GBeanAttribute.java:426)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:990)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
>        at
>
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
>        at
>
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:462)
>        at
>
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
>        at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
>        at
>
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
>        at
>
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:169)
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.loadClass(JDBCDriverMCF.java:321)
>        at
> org.tranql.connector.jdbc.JDBCDriverMCF.setDriver(JDBCDriverMCF.java:151)
>        ... 22 more
>
>  The service
>
> J2EEApplication=null,JCAConnectionFactory=testw,JCAManagedConnectionFactory=testw,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAConnectionManager,name=testw
> did not start because
>
> console.dbpool/testw/1.0/car?J2EEApplication=null,JCAConnectionFactory=testw,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAManagedConnectionFactory,name=testw
> did not start.
>  The service
>
> J2EEApplication=null,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAConnectionFactory,name=testw
> did not start because
>
> console.dbpool/testw/1.0/car?J2EEApplication=null,JCAConnectionFactory=testw,JCAManagedConnectionFactory=testw,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/testw/1.0/car,j2eeType=JCAConnectionManager,name=testw
> did not start.
>
>        at
>
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:489)
>        ... 5 more
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/deploy-tp3909648p3914493.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Ivan

Mime
View raw message