cancel
Showing results for 
Search instead for 
Did you mean: 

SOAPUI shows ClassnotFound Error when running a groovy script

Highlighted
kkr
New Contributor

SOAPUI shows ClassnotFound Error when running a groovy script

Hi,

 

I am using jxl jar to create an excel file and I have copied the jar file to SOAPUI/lib folder. But when I run the groovy script in SOAPUI 5.4.0 it is throwing the below error.

 

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script2.groovy: 41: unable to resolve class WritableWorkbook @ line 41, column 29.

 

I have added all import statements in the code and also tried classpathhacker option as well, but no luck. I have verified the java.class.path values in SOAPUI system properties and I see that jxl jar added to classpath. But when I run the groovy script it is showing the above error. This is happening on my client citrix machine. But the same code and steps works on my machine. Please let me know what are options we need to check to load third party jar in the SOAPUI classpath.

 

Thanks

KKR

 

 

3 REPLIES
Community Leader

Re: SOAPUI shows ClassnotFound Error when running a groovy script

Hi,

Is it Soapui Pro that you're using or rather the free version? Can you share your groovy script?


If my answer helped please click on the 'Accept as Solution' button.
kkr
New Contributor

Re: SOAPUI shows ClassnotFound Error when running a groovy script

I am using SOAPUI free version and attached the Groovy script.

 

I am getting class not found error when running the script on my citrix windows machine, but it works on my other regular windows machine. I didn't see any difference of installation of SOAPUI on both machines. But I don't know why it's not working on my citrix machine. 

 

Please let me know if you see this kind of issue.

 

Thanks

KKR

Community Leader

Re: SOAPUI shows ClassnotFound Error when running a groovy script

I'm sorry but I am not able to help. Smiley Sad

 

You might want to also try on the SoapUI open source forum https://community.smartbear.com/t5/SoapUI-Open-Source/bd-p/SoapUI_OS



If my answer helped please click on the 'Accept as Solution' button.
Watch a Video Interview
Top Kudoed Authors
Are You In?

Meet the Community Leaders!

SmartBear Connect is an excellent opportunity for training, in-person support, and networking.

GET YOUR TICKET WITH $100 OFF