Forum Discussion
Shashavali
2 years agoContributor
try this
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def classpathHacker = new com.eviware.soapui.support.ClasspathHacker () log.info "utils=" + groovyUtils path = groovyUtils.getProjectPath() myfile = new java.io.File(path + "/ojdbc14.jar") mystring = "file://" + path + "/ojdbc14.jar" log.info "myfile=" + myfile classpathHacker.addFile( myfile ) com.eviware.soapui.support.ClasspathHacker.addFile( myfile ) com.eviware.soapui.support.ClasspathHacker.addURL( new URL(mystring) ) import groovy.sql.* def sql = groovy.sql.Sql.newInstance( db, userid, password, 'oracle.jdbc.driver.OracleDriver' )
- Mr_Bro2 years agoFrequent Contributor
i have tried this approach and im encountring the below error ,
java.io.IOException: Error, could not add URL to classloader jdk.internal.loader.ClassLoaders$PlatformClassLoader error
- Shashavali2 years agoContributor
looks like issue with the java version.
don't you have access SmartBear\SoapUI-5.6.0\bin\ext folder ?
Related Content
- 5 years ago
Recent Discussions
- 15 years ago