Girish Gaurav Agarwal

Author's posts

[Maven – Build Error] Unsupported WTP Version

Hi, recently I was working on a project and I found a build error while I tried to execute mvn -eclipse:eclipse command to build eclipse project settings for my maven project. the solution for the above error message is specify maven-eclipse-plugin setting in your project’s pom file. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.5</version> <configuration> <wtpversion>${supported-wtp-version}</wtpversion> </configuration> </plugin> …

Continue reading

How to use vimdiff as SVN DIFF tool

Hi, in this post I am going to explain how to configure your svn-client to use vimdiff as default SVN diff tool. when I work on my Linux machine, and I try to view changes done on a file before committing to SVN, I use SVN DIFF command to compare my changes. it works cool …

Continue reading

Loading library/model classes from your views in CodeIgniter

Hi, When I was new to CodeIgniter, I need some data manipulation using a library function in my view classes, I simply loaded the library and called the library function, as I always do…. $this->load->library(‘some_library’); $this->some_library->some_library_function(some_parameters); but when run this code, I surprised by the error: Before this I had used library functions many times …

Continue reading

Download/Attach source-code/java-docs with maven dependencies

I am using Maven in my projects from last couple of years, and the automatically downloading the Jars from repository feature of maven is really helpful for developers. But If you are using Eclipse and want to read/analyse Source Code or Java Doc of API then you need the jar file that contains the Source …

Continue reading

Configuring multiple Tomcat application servers with Apache HTTP server/ Load Balancing with Apache Web Server

In this article, I am going to explain how we can configure multiple Tomcat instances with single Apache Web Server. There are many solutions posted on the web, but it is the simplest and easiest way to do this. Prerequisite: Apache HTTP Server 2.x Tomcat 6.x mod_jk.so module for Apache Web server Any text editor, …

Continue reading

Accessing Private Members of a Java class using Reflection

Somebody asked me that, “Is there any way of accessing private members of a Java Class?” Then I got the idea to write this article, because Java Reflection API provides a feature for accessing private members of a Java Class. java.lang.reflect package provides the AccessibleObject class that is parent class of Constructor, Method, and Field …

Continue reading

Introduction to Nonblocking Sockets

Here, I am going to explain what non-blocking sockets are, how it works, and where it can be useful, everything in details. Preface: Non-blocking sockets are introduced in Java 2 Standard Edition 1.4. It allows network communication between applications without blocking processes using the sockets. A nonblocking socket allows input/output operation on a channel without …

Continue reading

Load more