Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

I am trying to setup a mirror to persist updates to a backed database. I have configured the mirror and I am attempting to package the needed jar file, but the GSC doesn't seem to pick it up. I have placed the jar file in the /lib folder of my jar file and I have also placed it in the <gs>/lib/optional/pu-common folder. When I choose my jar file to deploy, it extracts it to <gs>/deploy/<project>/lib folder, so I see that it is being distributed through the system. When I look in the <gs>/work/processing-units/<project>/lib folder, I see the jar file there as well. I'm not sure what I am missing. I have another jar file that is package and included and it seems to work.

Any suggestions?

Here is the exception from GSC log:

2012-03-30 08:33:22,436 JasonSpaces.2 [1] WARNING [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null 2012-03-30 08:33:22,436 JasonSpaces.2 [1] SEVERE [org.hibernate.util.JDBCExceptionReporter] - Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' 2012-03-30 08:33:22,436 JasonSpaces.2 [1] WARNING [org.hibernate.cfg.SettingsFactory] - Could not obtain connection metadata; Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' 2012-03-30 08:33:22,733 JasonSpaces.2 [1] WARNING [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null 2012-03-30 08:33:22,733 JasonSpaces.2 [1] SEVERE [org.hibernate.util.JDBCExceptionReporter] - Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' 2012-03-30 08:33:22,733 JasonSpaces.2 [1] SEVERE [org.hibernate.tool.hbm2ddl.SchemaUpdate] - could not get database metadata; Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:27) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:127) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:314) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$5.run(AbstractAutowireCapableBeanFactory.java:1467) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1465) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainerProvider.createContainer(IntegratedProcessingUnitContainerProvider.java:273) at org.openspaces.pu.container.servicegrid.PUServiceBeanImpl.startPU(PUServiceBeanImpl.java:629) at org.openspaces.pu.container.servicegrid.PUServiceBeanImpl.doStart(PUServiceBeanImpl.java:219) at org.jini.rio.jsb.ServiceBeanAdapter$1.run(ServiceBeanAdapter.java:293) at org.jini.rio.jsb.ServiceBeanAdapter.start(ServiceBeanAdapter.java:306) at org.jini.rio.jsb.JSBLoader.create(JSBLoader.java:106) at org.jini.rio.cybernode.ServiceBeanLoader.load(ServiceBeanLoader.java:276) at org.jini.rio.cybernode.JSBDelegate.startServiceBean(JSBDelegate.java:463) at org.jini.rio.cybernode.JSBDelegate.load(JSBDelegate.java:318) at org.jini.rio.cybernode.JSBContainer.activate(JSBContainer.java:213) at org.jini.rio.cybernode.CybernodeImpl.instantiate(CybernodeImpl.java:1034) at org.jini.rio.core.provision.ServiceBeanInstantiatorGigaspacesMethodinternalInvoke3.internalInvoke(Unknown Source) at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:34) at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:396) at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:451) at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:545) at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:172) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run ... (more)

asked 2012-03-30 08:19:12 -0500

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

It looks like <gs>/lib/platform/ext is the place for 3rd party JDBC drivers. Seems to be working now.

Sorry for the duplicate posts.

answered 2012-03-30 08:44:20 -0500

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-03-30 08:19:12 -0500

Seen: 2,313 times

Last updated: Mar 30 '12