Forum Discussion

marioviertel's avatar
15 years ago

missing driver for derbyclient

Hello,

I am using a JDBC Test Step in my TestSuite. The configuration looks like this:

Driver: org.apache.derby.jdbc.ClientDriver
ConnectionString: jdbc:derby://myremotehost:1527/MyDB;user=user;password=pwd

Furthermore I added the derbyclient-10.1.2.1.jar to the %SOAPUIHOME%/lib directory on my WinXP machine.
When I click 'Test Connection' and execute a SQL query all will be fine. Short: The test step is working fine.

But now I run the test suite in an automatic test (managed by hudson) on a SuSE Linux system. To the pom.xml I added the following dependency

<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>10.1.2.1</version>
<scope>test</scope>
</dependency>

The dependency was correctly resolved and is available in the local repository:

.m2/m2-repo/org/apache/derby/derbyclient/10.1.2.1/derbyclient-10.1.2.1.jar

But when I run my testsuite I will get the following error:

10:59:37,360 ERROR [SoapUI] An error occured [No suitable driver], see error log for details
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:264)
at com.eviware.soapui.support.jdbc.JdbcUtils.initConnection(JdbcUtils.java:48)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.getDatabaseConnection(JdbcSubmit.java:217)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.prepare(JdbcSubmit.java:260)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.runQuery(JdbcSubmit.java:196)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.run(JdbcSubmit.java:160)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcSubmit.<init>(JdbcSubmit.java:74)
at com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcRequest.submit(JdbcRequest.java:135)
at com.eviware.soapui.impl.wsdl.teststeps.JdbcRequestTestStep.run(JdbcRequestTestStep.java:179)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:207)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:138)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:139)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Any ideas what's going wrong?

Thanks in Advance
Mario
No RepliesBe the first to reply