4 Replies Latest reply on Aug 12, 2002 12:45 PM by Keith Putt

    Failed to register driver for: oracle.jdbc.driver.OracleDriv

    duan Newbie

      Hello everyone, I can't configure Oralce driver successfully with JBoss 3.0.0. As the same step, i can success it easily with JBoss-3.0.0RC3.

      It shows the following message:
      11:02:14,598 ERROR [EjbModule] Initialization failed
      org.jboss.util.NestedSQLException: Failed to register driver for: oracle.jdbc.driver.OracleDriver; - nested throwable: (java.lang.ClassNotFoundException: oracle
      .jdbc.driver.OracleDriver); - nested throwable: (org.jboss.resource.ResourceException: Failed to register driver for: oracle.jdbc.driver.OracleDriver; - nested
      throwable: (java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver))
      at org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:106)
      .......

      Can anyone help me?
      Thanks a lot!

        • 1. Re: Failed to register driver for: oracle.jdbc.driver.Oracle
          Anil Bholankar Newbie

          Please make sure you have the Classes12.zip or Oraclethin.zip (One which contains the oracle driver class) placed in the ./lib directory of your server directory.
          Anil

          • 2. Re: Failed to register driver for: oracle.jdbc.driver.Oracle
            duan Newbie

            OK!I solved the problem.I once belive that if the class12.jar is set in the CLASSPATH, all will work.But it's wrong, i must put it in the ~/server/lib.

            • 3. Re: Failed to register driver for: oracle.jdbc.driver.Oracle
              Keith Putt Newbie

              I have put the sybase jar in the server/default/lib directory but I still get this error:


              16:09:51,822 ERROR [EjbModule] Initialization failed
              org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Failed to register driver for: com.sybase.jdbc2.jdbc.SybDatasource; - nested throwable: (java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDatasource); - nested throwable: (org.jboss.resource.ResourceException: Failed to register driver for: com.sybase.jdbc2.jdbc.SybDatasource; - nested throwable: (java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDatasource)))
              at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:67)
              at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:103)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:332)


              I have even tried putting in in all lib directories, but still the same error, any ideas?

              • 4. Re: Failed to register driver for: oracle.jdbc.driver.Oracle
                Keith Putt Newbie

                I get the same error trying to connect to sybase:

                org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Failed to register driver for: com.sybase.jdbc2.jdbc.SybDatasource; - nested throwable: (java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDatasource); - nested throwable: (org.jboss.resource.ResourceException: Failed to register driver for: com.sybase.jdbc2.jdbc.SybDatasource; - nested throwable: (java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDatasource)))
                at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:67)
                at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:103)
                at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:332)
                at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155)
                at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
                at org.jboss.ejb.Container.invoke(Container.java:789)
                at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
                at $Proxy24.create(Unknown Source)
                at org.jboss.system.ServiceController.create(ServiceController.java:272)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                at $Proxy22.create(Unknown Source)
                at org.jboss.ejb.EjbModule.createService(EjbModule.java:392)
                at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:134)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                at com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.java:240)
                at com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRequestHandler.java:325)
                at com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlRequestHandler.java:152)
                at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler.java:79)
                at com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
                at java.lang.Thread.run(Thread.java:479)


                I have put the jconn2.jar in the server/default/lib directory but I still get this error. I've even tried putting it in all the lib directories, but I still get the error.

                Any ideas?