RPriya
4 years agoNew Contributor
Upgraded to SoapUI 5.6.0 - unable to load jar file
I imported the project developed in SoapUI 5.2.1 to the newer version 5.6.0. Unable to load my jar files using the existing and working script.
Error : Failed to add jar to jdk.internal.loader.ClassLoaders$AppClassLoader, trying parent
Code snippet as below :
def classpathHacker = new com.eviware.soapui.support.ClasspathHacker ()
myfile = new java.io.File(path + "/poi-ooxml-3.9.jar")
mystring = "file://" + path + "/poi-ooxml-3.9.jar"
classpathHacker.addFile( myfile ) // ---> Getting error in this line
com.eviware.soapui.support.ClasspathHacker.addFile( myfile )
com.eviware.soapui.support.ClasspathHacker.addURL( new URL(mystring) )