jeudi 5 mai 2011

Having soapui working in Ubuntu 11.04

Hy all,

My last post explained how to bypass the freezing soapui error under Ubuntu 11.04. This last solution was a bit dirty.

Now the best thing to do will be to:
  1. open your soapui.sh script
  2. uncomment the line: 
JAVA_OPTS="$JAVA_OPTS -Dsoapui.jxbrowser.disable=true"

and start soapui.

Thanks to all!

Regards,

mardi 3 mai 2011

Getting Soapui working with Ubuntu 11.04 with libgthread-2.0 !

Hi all!

If you tried runnning soapui 3.6.1 for linux under Ubuntu 11.04, the UI might freeze with the following error:

 [XpcMessageLoop] DEBUG com.jniwrapper.DefaultLibraryLoader - Finding library in JARs...
Exception in thread "XpcMessageLoop" java.lang.RuntimeException: java.io.FileNotFoundException: Library libgthread-2.0 not found at any known locations !
    at com.jniwrapper.linux.utils.LinuxLibraryLoader.(LinuxLibraryLoader.java:90)
    at com.jniwrapper.gdk.GdkMultithreading.(GdkMultithreading.java:48)
    at com.jniwrapper.gdk.GdkMultithreading.getInstance(GdkMultithreading.java:35)
    at com.jniwrapper.gtk.GTK.initialize(GTK.java:97)
    at com.teamdev.xpcom.a.a.a.a.(Unknown Source)
    at com.teamdev.xpcom.XpcMessageLoop.(Unknown Source)
    at com.teamdev.xpcom.XpcMessageLoop.getInstance(Unknown Source)
    at com.teamdev.xpcom.b$b.run(Unknown Source)
Caused by: java.io.FileNotFoundException: Library libgthread-2.0 not found at any known locations !
    ... 8 more


Under Ubuntu 11.04 libgthread-2.0 doesn't seems to be present anymore, but libgthread-3.0 is supposed to replace it.
Unfortunalty, soapui doesn't have yet been updated to be used under this last ubuntu version and its last graphical libraries.

To by pass this issue one dirty solution would be:
  1. Dowload libgthread-2.0 debian package used under Ubuntu 10.10 at:  http://91.189.94.219/natty/i386/libglib2.0-0/download
  2. The package installer would not allow you to install it because a more recent version is available on your distro. To resolve this, extract the deb archive and copy theses 2 files with root priviledges under /usr/lib/ :
     - libglib2.0-0_2.28.6-0ubuntu1_i386/usr/lib/i386-linux-gnu/libgthread-2.0.so.0
      - libglib2.0-0_2.28.6-0ubuntu1_i386/usr/lib/i386-linux-gnu/libgthread-2.0.so.0.2800.6 
 
If necessary you'll have to do update your database:
sudo updatedb

Then soapui 3.6.1 should start without freezing at all and wihtout the boggus error message above.
Of course, if you have better suggestion, please let me know!
Cheers!