3 Replies Latest reply on Jul 27, 2012 1:06 AM by prashanth Reddy Dundigal

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

    prashanth Reddy Dundigal Newbie

      Subject: Getting ERROR while working with the "Tutorial : Using your own databse with jBPM"

       

      Dear friend,

       

      I followed the "Tutorial : Using your own databse with jBPM", I am using Oracle database. Inspite of repeating the steps a number of times, I was not able to successfully run the demo. When I run the  "> ant start.demo.db", I get this error always "

      "     [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 "

      I even configured for the latest JBoss AS 7. The environment I am using is : "jBPM 5.3 ,   JBoss-AS-7.0.2 ".  Please let me know how to solve this issue.

       

      I tried mailing " jbpm-dev@lists.jboss.org", but it is rejecting the mails.

      --
      Thanking You,
      Regards,

       

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

          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

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

            Hi friends,

             

            It is observed that though we put ojdbc6.jar, it is still looking for com.mysql.jdbc.Driver of the mysql jar. But how can I make the "demo.db" look for oracle jar, since I am using oracle 11 database.

             

            Warmest Regards,

            prashanth