Error using custom JAR in SOAP UI Groovy Test Step
I am trying to include custom code for SAML generation (in form of JAR) into Groovy test step. Below are the steps I followed : 1. Created JAR 2.Copied JAR and their dependencies in .../bin/ext 3. Restarted SOAP UI Added below code in Groovy test step: import com.example.test.SAML2OpenSamlHelper; SAML2OpenSamlHelper s = new SAML2OpenSamlHelper(); String saml = s.generateResponseString("Raj","mypage.com", null, false, "", false, false); log.info (saml); But getting below error when executing : Thu Jun 30 14:10:25 MST 2016:ERROR:java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at org.opensaml.DefaultBootstrap.initializeVelocity(DefaultBootstrap.java:172) at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:89) at com.example.test.SAML2OpenSamlHelper.setUp(SAML2OpenSamlHelper.java:212) at com.example.test.SAML2OpenSamlHelper.init(SAML2OpenSamlHelper.java:190) at com.example.test.SAML2OpenSamlHelper.(SAML2OpenSamlHelper.java:124) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:186) at Script6.run(Script6.groovy:2) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Am I doing something wrong or missing some step ? Help will be appreciated... Thanks, AbhiSolved2.3KViews0likes3Comments