Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
I'm not exactly sure why you need DB2 drivers in the <SoapUI Pro install>\lib directory. The fact that this is particular to the DB2 driver is strange. It could be some sort of classpath or classloader issue particular to that driver occurring. I did notice the same problem with the mysql driver I was using with the Groovy groovy.sql.Sql class. If you try the following code with your DB2 driver in the <SoapUI Pro install>\bin\ext directory and the appropiate JDBC DB2 string it should work.
Regards,
Marcus
SmartBear Support
I'm not exactly sure why you need DB2 drivers in the <SoapUI Pro install>\lib directory. The fact that this is particular to the DB2 driver is strange. It could be some sort of classpath or classloader issue particular to that driver occurring. I did notice the same problem with the mysql driver I was using with the Groovy groovy.sql.Sql class. If you try the following code with your DB2 driver in the <SoapUI Pro install>\bin\ext directory and the appropiate JDBC DB2 string it should work.
import java.sql.Connection;
import java.sql.DriverManager;
import com.mysql.jdbc.Driver; //import the applicable driver class for your JDBC driver
try
{
String url = "jdbc:mysql://127.0.0.1:3306/test";
Connection conn = DriverManager.getConnection (url, "user", "password");
}
catch(Exception e)
{
log.info e.message
log.info e.stackTrace
}
Regards,
Marcus
SmartBear Support