5 Replies Latest reply on Sep 10, 2015 4:27 AM by Wolfgang Mayer

    Getting  java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    Jagadish Adabala Newbie

      Hi All,

       

       

      Am getting Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource  when am enabling my ear from Wildfly admin console (Linux environment)

       

      2:39:55,986 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017534: Registered web context: /test
      02:39:55,993 INFO  [stdout] (MSC service thread 1-4) Connection Reaper Started........
      02:39:55,993 INFO  [stdout] (MSC service thread 1-4) Connection not available for this user now
      02:39:55,993 INFO  [stdout] (MSC service thread 1-4) strSOXLoginID Dev_SERVER
      02:39:55,995 INFO  [stdout] (MSC service thread 1-4) Failed while loading the driver class...java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver from [Module "deployment.DEAR.ear.testCommon.jar:main" from Service Module Loader]
      02:39:55,995 INFO  [stdout] (MSC service thread 1-4) strUserIdDev_UPDATE
      02:39:55,995 INFO  [stdout] (MSC service thread 1-4) urljdbc:oracle:thin:@(description=(address=(host=dev.ca.test.com)(protocol=tcp)(port=1521))(connect_data=(sid=dev)))
      02:39:55,996 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./test: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./test: Failed to start service
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_72]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_72]
              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_72]
      Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
              at com.test.crds.arch.util.test.createConnectionPool(CRDSConnectionManager.java:215)
              at com.test.crds.arch.util.test.getProxyConnection(CRDSConnectionManager.java:140)
              at com.test.crds.arch.util.test.getConnection(CRDSConnectionManager.java:89)
              at com.test.crds.arch.control.web.FlowtestManager.getConnection(FlowManager.java:519)
              at com.test.crds.arch.control.web.FlowtestManager.setRootPath(FlowManager.java:532)
              at com.test.crds.arch.control.web.FlowtestManager.init(FlowManager.java:144)
              at com.test.crds.arch.admin.web.AdmintestServlet1.getFlowManager(AdminServlet1.java:141)
              at com.test.crds.arch.admin.web.AdmintestServlet1.init(AdminServlet1.java:59)
              at javax.servlet.GenericServlet.init(GenericServlet.java:244)
              at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:214)
              at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:119)
              at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:505)
              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)
              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
              ... 3 more
      Caused by: java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource from [Module "deployment.testEAR.ear.testCommon.jar:main" from Service Module Loader]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
              ... 19 more

      02:39:58,650 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-7) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "testEAR.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./test" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./test: Failed to start service
          Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
          Caused by: java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource from [Module \"deployment.testEAR.ear.testCommon.jar:main\" from Service Module Loader]"}}
      02:39:58,653 ERROR [org.jboss.as.server] (XNIO-1 task-7) JBAS015870: Deploy of deployment "testEAR.ear" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./test" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./test: Failed to start service
          Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
          Caused by: java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource from [Module \"deployment.testEAR.ear.testCommon.jar:main\" from Service Module Loader]"}}