Forum Discussion
LalMAnsari
10 years agoNew Contributor
Were you able to find the resolution of your problem? I am facing the same problem but com.eviware.soapui.support.ClasspathHacker.addURL( new URL("jar file") ) is not working for me. I am still getting the same error.
BhuvaneshMani
10 years agoNew Contributor
I am not sure if you have added correct path provided in "jar file" in below line.
com.eviware.soapui.support.ClasspathHacker.addURL( new URL("jar file") )
I tried with below code and it worked.
Note: We require different set of jar files for different projects created in SOAP UI and hence we maintain the folder "jars" is same location of project xml and put all required jars inside jars folder.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def classpathHacker = new com.eviware.soapui.support.ClasspathHacker() path = groovyUtils.getProjectPath() myfile = new java.io.File(path + "/jars/ojdbc7.jar") mystring = "file://" + path + "/jars/ojdbc7.jar" classpathHacker.addFile( myfile ) classpathHacker.addURL( new URL(mystring))