geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kdyj <kdy...@gmail.com>
Subject H2 database deploy issue
Date Tue, 02 Sep 2014 13:29:45 GMT
Hi All:

I try to add H2 jar into geronimo 3.0.0.2, my H2 jar is 1.3.176.

I successfully add H2 jar into repository, the issue is following:

I try to create a Database Pool, and select "Database Type": Other, 
JDBC Driver Class: org.h2.Driver
Driver JAR: h2/org.h2/1.3.176/jar
JDBC Connect URL: jdbc:h2:tcp://<server>/~/epm
Pool Max Size: 10

Test Connection is success, but I cannot "Deploy"

Is anyone successfully create H2 datasource in geronomio ce?

Thank you

I got the error from server.log
2014-09-02 09:27:06,037 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="console.dbpool/jdbc_H2EpmDs4/1.0/car?J2EEApplication=null,JCAConnectionFactory=jdbc/H2EpmDs4,JCAResource=tranql-connector-ra-1.7,ResourceAdapter=tranql-connector-ra-1.7,ResourceAdapterModule=console.dbpool/jdbc_H2EpmDs4/1.0/car,j2eeType=JCAManagedConnectionFactory,name=jdbc/H2EpmDs4"
javax.resource.spi.InvalidPropertyException: Unable to load driver class:
org.h2.Driver
	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:236)
	at
org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:180)
	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:466)
	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:710)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:689)
	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: org.h2.Driver
	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:248)
	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





--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/H2-database-deploy-issue-tp3988255.html
Sent from the Development mailing list archive at Nabble.com.

Mime
View raw message