JBoss Community

Re: Getting ERROR while working with the "Tutorial : Using your own databse with jBPM" - JDBC Driver class not found: oracle.jdbc.driver.OracleDriver

created by prashan r in jBPM - View the full discussion

Yes, I did set the "CLASSPATH    -  C:\jBPM\jbpm-installer\lib\ojdbc6.jar"

I coped the jar to  "/standalone/deployments"

I even modified the META-INF/services/java.sql.Driver of the ojdbc6.jar

 

I did all the changes mentioned in

https://community.jboss.org/wiki/DataSourceConfigurationinAS7

http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e415

 

but no use, it still gives the error "

 

     [copy] Copying 2 files to C:\jBPM\jbpm-installer\task-service\target

     [java] 15   24/07 14:06:22,140[main] ERROR hibernate.connection.DriverManag

erConnectionProvider.configure  - JDBC Driver class not found: oracle.jdbc.drive

r.OracleDriver

     [java] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

     [java]     at java.security.AccessController.doPrivileged(Native Method)

     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:303)

     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

 

 

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)

 

 

     [java]     at java.lang.Class.forName0(Native Method)

     [java]     at java.lang.Class.forName(Class.java:169)

     [java]     at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.j

ava:192)

     [java]     at org.hibernate.connection.DriverManagerConnectionProvider.conf

igure(DriverManagerConnectionProvider.java:84)

     [java]     at org.hibernate.connection.ConnectionProviderFactory.newConnect

ionProvider(ConnectionProviderFactory.java:137)

     [java]     at org.hibernate.ejb.InjectionSettingsFactory.createConnectionPr

ovider(InjectionSettingsFactory.java:29)

     [java]     at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFacto

ry.java:89)

     [java]     at org.hibernate.cfg.Configuration.buildSettingsInternal(Configu

ration.java:2119)

     [java]     at org.hibernate.cfg.Configuration.buildSettings(Configuration.j

ava:2115)

     [java]     at org.hibernate.cfg.Configuration.buildSessionFactory(Configura

tion.java:1339)

     [java]     at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory

(AnnotationConfiguration.java:867)

     [java]     at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory

(Ejb3Configuration.java:669)

     [java]     at org.hibernate.ejb.HibernatePersistence.createEntityManagerFac

tory(HibernatePersistence.java:126)

     [java]     at javax.persistence.Persistence.createEntityManagerFactory(Pers

istence.java:52)

     [java]     at javax.persistence.Persistence.createEntityManagerFactory(Pers

istence.java:34)

     [java]     at org.jbpm.DemoTaskService.main(Unknown Source)

     [java] Exception in thread "main" javax.persistence.PersistenceException: [

PersistenceUnit: org.jbpm.task] Unable to build EntityManagerFactory

     [java]     at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory

(Ejb3Configuration.java:677)

     [java]     at org.hibernate.ejb.HibernatePersistence.createEntityManagerFac

tory(HibernatePersistence.java:126)

     [java]     at javax.persistence.Persistence.createEntityManagerFactory(Pers

istence.java:52)

     [java]     at javax.persistence.Persistence.createEntityManagerFactory(Pers

istence.java:34)

     [java]     at org.jbpm.DemoTaskService.main(Unknown Source)

     [java] Caused by: org.hibernate.HibernateException: JDBC Driver class not f

ound: oracle.jdbc.driver.OracleDriver

     [java]     at org.hibernate.connection.DriverManagerConnectionProvider.conf

igure(DriverManagerConnectionProvider.java:89)

     [java]     at org.hibernate.connection.ConnectionProviderFactory.newConnect

ionProvider(ConnectionProviderFactory.java:137)

     [java]     at org.hibernate.ejb.InjectionSettingsFactory.createConnectionPr

ovider(InjectionSettingsFactory.java:29)

     [java]     at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFacto

ry.java:89)

     [java]     at org.hibernate.cfg.Configuration.buildSettingsInternal(Configu

ration.java:2119)

     [java]     at org.hibernate.cfg.Configuration.buildSettings(Configuration.j

ava:2115)

     [java]     at org.hibernate.cfg.Configuration.buildSessionFactory(Configura

tion.java:1339)

     [java]     at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory

(AnnotationConfiguration.java:867)

     [java]     at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory

(Ejb3Configuration.java:669)

     [java]     ... 4 more

     [java] Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.Orac

leDriver

     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

     [java]     at java.security.AccessController.doPrivileged(Native Method)

     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:303)

     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

 

 

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)

 

 

     [java]     at java.lang.Class.forName0(Native Method)

     [java]     at java.lang.Class.forName(Class.java:169)

     [java]     at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.j

ava:192)

     [java]     at org.hibernate.connection.DriverManagerConnectionProvider.conf

igure(DriverManagerConnectionProvider.java:84)

     [java]     ... 12 more

     [java] Java Result: 1

 

 

regards,

prashanth

Reply to this message by going to Community

Start a new discussion in jBPM at Community