Forum Discussion

nmowbray's avatar
nmowbray
Occasional Contributor
6 years ago

ReadyAPI 2.7 Failed to Register the JDBC driver

Hi, 

I recently updated ReadyAPI from 2.6 to 2.7 but now all my test steps that have custom code to connect to a database via JDBC i get the following errors: 

 

  • Mon May 06 10:32:49 MDT 2019: ERROR: Failed to register the JDBC driver [oracle.jdbc.driver.OracleDriver].
  • Mon May 06 10:32:49 MDT 2019: ERROR: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
  • java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
  • at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  • at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  • at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  • at java.lang.Class.forName0(Native Method)
  • at java.lang.Class.forName(Class.java:348)
  • at com.eviware.soapui.support.GroovyUtils.registerJdbcDriver(GroovyUtils.java:110)
  • at com.eviware.soapui.support.GroovyUtils$registerJdbcDriver.call(Unknown Source)
  • at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  • at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  • at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
  • at Script1.run(Script1.groovy:2)
  • at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:98)
  • at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:83)
  • at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:158)
  • at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:261)
  • at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStepByName(AbstractTestCaseRunner.java:240)
  • at com.eviware.soapui.model.testsuite.TestCaseRunner$runTestStepByName$0.call(Unknown Source)
  • at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  • at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  • at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
  • at Script1.run(Script1.groovy:8)
  • at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:98)
  • at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:83)
  • at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:158)
  • at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:261)
  • at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:52)
  • at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:171)
  • at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1)
  • at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130)
  • at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  • at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  • at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  • at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  • at java.lang.Thread.run(Thread.java:748)

Does anyone have a solution? 

 

Thanks 

Nathon

  • I figured out my issue.  I had the wrong name for my driver name.

  • nmrao's avatar
    nmrao
    Champion Level 3
    When the upgrade of the software is done, the respective custom libraries under bin/ext directory have to be placed under the new installation's bin/ext directory.
    • khanchett's avatar
      khanchett
      Contributor

      I figured out my issue.  I had the wrong name for my driver name.