PaulSimthLee
12 years agoOccasional Contributor
SOAPUI Plugin in Eclipse - add custom jar files
As my previous post reporting that I cannot install SOAPUI. I use SOAPUI Plugin to my eclipse.
I have successfully plugge in my eclipse and am able to create a SOAPUI project. Yes. I am able to create a test case open to a testCase edit to add groovy script to the Setup Script tab.
My script is required to use some jar files, I used to put the jar files in the SOAPUI_HOME/bin/ext folder, it works fine. It is because now I am no longer able to open the TestCase Editor and to reinstall SOAPUI, I am not use the SOAPUI Plugin. I dont know where to put my jar files in Eclipse, I put the jar files in the JAVA_HOME, but it does not work, it always returns the following error:
- Unable to resolve class MQQueueConnectionFactory.
As I know this problem is caused by not finding my jar files. Would you please advise where to put my jar files. Below is my script
/* this.getClass().classLoader.rootLoader.addURL(new File("icc-testutil.jar").toURL()) */
import javax.jms.*
import com.ibm.mq.jms.*
import groovy.sql.*
import com.pcbsys.nirvana.nJMS.*
import com.eviware.soapui.support.*
import au.XX.edu.*
ConnectionFactory mqFactory = new MQQueueConnectionFactory()
mqFactory.setHostName(mqSettings.hostname)
mqFactory.setPort(mqSettings.port as Integer)
mqFactory.setQueueManager(mqSettings.queue_manager)
mqFactory.setChannel(mqSettings.channel_name)
mqFactory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP)
Connection mqConnection = mqFactory.createQueueConnection()
Session mqSession = mqConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE)
I have successfully plugge in my eclipse and am able to create a SOAPUI project. Yes. I am able to create a test case open to a testCase edit to add groovy script to the Setup Script tab.
My script is required to use some jar files, I used to put the jar files in the SOAPUI_HOME/bin/ext folder, it works fine. It is because now I am no longer able to open the TestCase Editor and to reinstall SOAPUI, I am not use the SOAPUI Plugin. I dont know where to put my jar files in Eclipse, I put the jar files in the JAVA_HOME, but it does not work, it always returns the following error:
- Unable to resolve class MQQueueConnectionFactory.
As I know this problem is caused by not finding my jar files. Would you please advise where to put my jar files. Below is my script
/* this.getClass().classLoader.rootLoader.addURL(new File("icc-testutil.jar").toURL()) */
import javax.jms.*
import com.ibm.mq.jms.*
import groovy.sql.*
import com.pcbsys.nirvana.nJMS.*
import com.eviware.soapui.support.*
import au.XX.edu.*
ConnectionFactory mqFactory = new MQQueueConnectionFactory()
mqFactory.setHostName(mqSettings.hostname)
mqFactory.setPort(mqSettings.port as Integer)
mqFactory.setQueueManager(mqSettings.queue_manager)
mqFactory.setChannel(mqSettings.channel_name)
mqFactory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP)
Connection mqConnection = mqFactory.createQueueConnection()
Session mqSession = mqConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE)