|
采用java虚拟脚本对一mySQL数据进行调用,在本机的编译环境下可以正常执行,并且功能正确(环境变量米有问题)!但是在LR中进行调用时出现以下错误:
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
System.out: 1 Notify:Error: System.err:java.lang.ClassNotFoundException:com.mysql.jdbc.Driver Error
System.err: at java.net.URLClassLoader$1.run(URLClassLoader.java:199) Error
System.err: at java.security.AccessController.doPrivileged(Native Method) Error
System.err: at java.net.URLClassLoader.findClass(URLClassLoader.java:187) Error
System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:289) Error
System.err: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) Error
System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:235) Error
System.err: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) Error
System.err: at java.lang.Class.forName0(Native Method) Error
System.err: at java.lang.Class.forName(Class.java:141)
System.err: at mySql.MySql.<init>(MySql.java:14) Error
System.err: at Actions.action(Actions.java:20) Error
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
是java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ,加载数据库失败!!!!该加的包也加了,怎么还报错呢?
[ 本帖最后由 zhuyuancan 于 2008-10-31 13:52 编辑 ] |
|