Forum Discussion

jrahman's avatar
jrahman
Contributor
15 years ago

JAR file call from Groovy script in SoapUI Pro 3.5.1

Please help me to use JAR file correctly.

I am:
Using SoapUI Pro 3.5.1 (Windows XP)
Created an external java application using java version "1.6.0_20" and put the .jar package under ~/bin/ext folder
Restarted the SoapUi

When I call the method of the .jar from a Groovy script, it gives following error:
/***
BUG! exception in phase 'semantic analysis' in source unit 'Script2.groovy' class "ReachableTest"'s signer information does not match signer information of other classes in the same package
***/

Note:
The name of my .jar file is ReachableTest.jar which has following code:
/***
import java.io.*;
import java.net.*;

public class ReachableTest
{
public static void main(String args[])
{
try
{
InetAddress address = InetAddress.getByName("173.194.32.104");
System.out.println("Reach: " + address.isReachable(3000));
}//try
catch (UnknownHostException e)
{
System.err.println("Unable to connect");
}//catch-1
catch (IOException e)
{
System.err.println("Unable to connect");
}//catch-2
}//main()
}//class
***/

2 Replies

  • Hi!

    Do you have any other jars in the bin/ext folder that could be interfering?

    Can you show the groovy code you are using to use this class?

    regards!

    /Ole
    eviware.com