Binary Search Tree Traversal Implemented in Java


Most of the students fresh out of their engineering studies or those who are still studying will have the concept of Binary Search Trees fresh in their minds. But with most of the people who have been out of college for many years now will kind of be having a not so clear idea of […]

Deprecated Tags and Attributes in HTML


In this tutorials I’ll give an explanation about the deprecated tags and attributes with new versions of HTML. We will understand why and what to use in exchange of these tags and attributes. As is known to many, HTML 5 was released some time ago.  Along came the uproar about the new features, functionality and features which […]

Create Buttons using jQuery UI


In this tutorial we will see how to create stylized buttons using the jQuery UI library. In reality 100% of the systems we develop, whether desktop, mobile or web, there are situations where it is required to submit data by the user. And to submit these data or even to perform a simple action like opening a […]

Prime Faces Hello World Example


In a very simple Java terminology, PrimeFaces is a rich JSF lightweight library with one jar, zero-configuration and no required dependencies. So PrimeFaces is very easy to integrate with our application, just add primefaces-X.jar and start working with its components. Primefaces is one of the most popular UI component libraries used by the Java developers. […]

Spring 3 and JSR-330 Annotation : @Named and @Component Difference


@Named and @Component annotations are used for the same purpose. Both the annotations are used for enabling a class to be auto detected as the bean definition for spring’s application context. The following are the main different of these two annotations. @Named is part of the. Java specification. It is more recommended since this annotation […]

Spring Bean Factory Exception : BeanFactory not initialized or already closed


The given exception is exception is thrown when the spring bean factory is not initialized properly before it is used in your application. It normally occurs when we are not added the bean factory initialization code in our project. One typical example is adding the spring initialization parameter to web.xml deployment descriptor. Exception Trace:

Jersey : The ResourceConfig instance does not contain any root resource classes


When you are working with Jersey REST web services, you would encounter the following exception. This is occurred either of two reasons. doesn’t exist in your web.xml. included a package path, but that is not included any jersey services. If you check the above two reasons and resolve it, the below exception will […]

java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor


When you work on Hibernate, Jersey or any third party API, most of these APIs have the dependency with the asm.jar file. ASM is an all purpose Java bytecode manipulation and analysis framework. This is a common framework used by many of the thrird part frameworks internally, that is the reason many projects have this […]

Spring and Jersey Integration Example


This tutorial explains how to write a simple example using Spring and Jersey. This example uses Jersey for the REST implementation, Spring is used for managing the beans. In my previous tutorial, I have explained how to write a simple REST application using Jersey. We also can use Spring alone for implementing the RESTful web […]

RESTful Web Service using Jersey


In this tutorial I am going to explain a very basic example using Jersey REST Services. Building webservices using the REST concept is popular because of its simple nature and light weight. We have already explained how to write REST services using the Spring MVC framework. Spring provides out of the box support for the […]