Forum Discussion
Hi,
That looks ok, at least at first glance...
If you take this example of importing the H2 DB driver:
import groovy.sql.Sql
import org.h2.Driver
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver("org.h2.Driver")
def db = Sql.newInstance("jdbc:h2:mem:test", "org.h2.Driver")
...
If I don't add the h2-1.4.181.jar (for the org.h2.Driver class, groovy.sql.Sql is already in the SoapUI lib folder) then I get the same error as you i.e. unable to resolve class.
If I then add h2-1.4.181.jar to <SoapUI Installation Directory>/java/app/bin/ext/ (Mac) then the code compiles and runs fine.
I can't see your ITDConnection class in the screenshot though?
Cheers,
Rupert
Hang on, are you providing your DDD classes just as a folder rather than a jar file? I can't quite remember, but I think the SoapUI ext class loader might only scan for *.jar files to add to the classpath...
Hope this helps.
Cheers,
Rupert
Related Content
- 8 years ago
Recent Discussions
- 2 days ago