Error using custom JAR in SOAP UI Groovy Test Step
- 9 years ago
Hi Abhi,
The steps you described for adding a jar file library appear correct - I actually did a basic blog of how to build and add jar file libraries to SoapUI, let me know if it helps:
http://rupertanderson.com/blog/1-how-to-develop-add-and-use-a-custom-groovy-library-in-soapui/
Something that isn't in the blog (which I might well add now) is how to handle when a SoapUI jar library requires external dependencies - in this case, I can see that NoClassDefFoundError for:
org/apache/velocity/app/Velocity
can be obtained from https://mvnrepository.com/artifact/org.apache.velocity/velocity/1.7
The jar file containing this must also be present on the SoapUI class path. So if it isn't in the SoapUI /lib folder, then you need to add this velocity jar to the /ext folder too - are you sure that this velocity jar is present in either /lib or the /ext folder?
Regards,
Rupert