14 years ago
TestRunner could not found JDBC class
I built the test case with JDBC connection and it works well when I using SoapUI GUI for testing. But if I changed to command line by using TestRunner, it always throw exception such like:
09:39:03,718 INFO [SoapUITestCaseRunner] running step [Setup]
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
It seems test runner could not found sqljdbc4.jar, but I already put the jar wherever SoapUI may access, JDK folder, SoapUI lib folder, etc. But it still not work. Then I checked the bat file between SoapUI.bat and TestRunner.bat but found no difference of the environment settings.
You guys who met the problem before, pls kindly give me a hand of it.
Thx for all of you!!
09:39:03,718 INFO [SoapUITestCaseRunner] running step [Setup]
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
It seems test runner could not found sqljdbc4.jar, but I already put the jar wherever SoapUI may access, JDK folder, SoapUI lib folder, etc. But it still not work. Then I checked the bat file between SoapUI.bat and TestRunner.bat but found no difference of the environment settings.
You guys who met the problem before, pls kindly give me a hand of it.
Thx for all of you!!