Tuesday, December 10, 2013

How to checkout file by file OR a single file from Subversion


With Subversion 1.5 above, users can follow given below steps to checkout file by file or a single file from a svn repository . This is known as "Parse Checkout". 
  • svn checkout <svn_directory_location_of_the_file> <file_system_location> --depth empty. 
    •  svn_directory_location_of_the_file
              E.g. - If the file x is in the SVN location https://svn.test.org/repos/ , the   value for this should be https://svn.wso2.org/repos/.  
    •  file_system_location : To where the checkout should be made to.
             E.g. - source/
 
             A full example command would be :
     svn checkout https://svn.wso2.org/repos/ source/ --depth empty

  •  Now go in to the file system location. 
             E.g. cd source

  •  Now svn update the file or directory you want to check out. 
             E.g. svn up x.txt , svn up x_directory/



Monday, December 2, 2013

Soap UI-4.0.0- Exception in thread "XpcMessageLoop" java.lang.ExceptionInInitializerError

When I tried to run soapui.sh from inside the [soapui_home]/bin on my Ubuntu 13.04 I got the given below error.

Exception in thread "XpcMessageLoop" java.lang.ExceptionInInitializerError
    at com.teamdev.xpcom.a.b.a.a.(Unknown Source)
    at com.teamdev.xpcom.XpcMessageLoop.(Unknown Source)
    at com.teamdev.xpcom.XpcMessageLoop.getInstance(Unknown Source)
    at com.teamdev.xpcom.b$a.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: Library libgtk-x11-2.0 not found at any known locations !
    at com.jniwrapper.linux.utils.LinuxLibraryLoader.(LinuxLibraryLoader.java:90)
    at com.jniwrapper.gtk.GtkLib.(GtkLib.java:25)
    at com.jniwrapper.gtk.GtkLib.getFunction(GtkLib.java:41)
    at com.jniwrapper.gtk.GTK.(GTK.java:45)
    ... 4 more
Caused by: java.io.FileNotFoundException: Library libgtk-x11-2.0 not found at any known locations !
    ... 8 more


The reason for this issue is Soap UI 4.0.0 is known to this version and to overcome it you have to uncomment the following line from the soapui.sh.

JAVA_OPTS="$JAVA_OPTS -Dsoapui.jxbrowser.disable=true"

And restart Soap UI.

Install Oracle JDK over Open JDK on Ubuntu 13.04

  • Check your Java version first.

$ java -version

  • This will out put you something like below.

java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)


  • If so run the given below command as well to verify further what are the jdk components installed.

$ sudo dpkg --list | grep -i jdk

  • This will provide show a log like below.

ii  icedtea-7-jre-jamvm:amd64                 7u25-2.3.10-1ubuntu0.13.04.2           amd64        Alternative JVM for OpenJDK,  using JamVM
ii  openjdk-7-jdk:amd64                       7u25-2.3.10-1ubuntu0.13.04.2           amd64        OpenJDK Development Kit (JDK)
ii  openjdk-7-jre:amd64                       7u25-2.3.10-1ubuntu0.13.04.2           amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-7-jre-headless:amd64              7u25-2.3.10-1ubuntu0.13.04.2           amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-7-jre-lib                         7u25-2.3.10-1ubuntu0.13.04.2           all          OpenJDK Java runtime (architecture independent libraries)



  • Now you can remove Open JDK as given below.

$ sudo apt-get purge icedtea-* openjdk-*

  • Then execute following commands to install Oracle jdk 1.7 on your Ubuntu 13.04

$ sudo apt-get install oracle-java7-installer
$ sudo update-java-alternatives -s java-7-oracle

Friday, August 23, 2013

Install Subversion on CentOS/RHEL 6.4,5.9

The popularly used version control system Subversion can be installed in most of the Linux operating systems. With the given below steps you can easily install and remove subversion from CentOS or Red Hat Linux 5.9,6.4 operating systems.

 To install subversion use given below command as the root user.

sudo yum install mod_dav_svn subversion


After installation you can check the installed version as given below.

rpm -qa | grep -i subversion


The given above command would result in the installed package name of the subversion, using that name you can remove the package too.

sudo yum remove <subversion_package_name>


E.g. - sudo yum remove subversion-1.6.11-9.el6_4.x86_64