Maven Build Failure - Hadoop 2.2.0 - [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found

16,945 views
By Abhijit Ghosh on Dec 22, 2013 1:39:42 AM

In the previous post on Build, Install, Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS, many people have encountered Maven build failure issue ("[ERROR] class file for org.mortbay.component.AbstractLifeCycle not found") for Apache Hadoop Auth project. So thought of sharing the fix as a separate post.

Tags:

Configure SSL/HTTPS support on Apache Tomcat 7

64,624 views
By Abhijit Ghosh on Nov 27, 2013 2:08:21 PM

By default, HTTPS / SSL is not configured and enabled in Tomcat Web server. SSL setup is required to make your web application accessible over HTTPS protocol. This post will guide you to configure SSL in Tomcat 7 Web server.

Tags:

Get Redirections of a URL using Apache HttpComponents HttpClient

26,538 views
By Abhijit Ghosh on Nov 25, 2013 2:08:10 PM

Many websites use URL redirection technique to forward the original request from one location to another several times for different reasons (Domain forwarding, URL shortening, Privacy protection, Maintaining similar domain names referring single website, etc.). In this post, I'll try to demonstrate how to get all the redirections of a URL using Apache HttpComponents HttpClient. A live demo will be a bonus here.

Tags:

Determine Click Position (Row and Column Number) on click of a table cell

61,754 views
By Pavan Deshpande on Nov 24, 2013 9:16:28 AM

This example shows how to determine click position (row and column number) on click of a table cell using jQuery.

Tags:

ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path

74,587 views
By Abhijit Ghosh on Nov 3, 2013 3:20:52 PM

If we directly take the binary distribution of Apache Hadoop 2.2.0 release and try to run it on Microsoft Windows, then we'll encounter ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path.In the previous post - Build, Install, Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS, I have already described how to build Windows distribution of Apache Hadoop 2.2.0. But if you are feeling little bit lazy to perform all the lengthy steps described there and want to get started with Hadoop quickly by-passing those steps, then this is the post worth looking into.

Tags:

Build, Install, Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS

177,265 views
By Abhijit Ghosh on Nov 3, 2013 1:56:41 PM

Good news for Hadoop developers who want to use Microsoft Windows OS for their development activities. Finally Apache Hadoop 2.2.0 release officially supports for running Hadoop on Microsoft Windows as well. But the bin distribution of Apache Hadoop 2.2.0 release does not contain some windows native components (like winutils.exe, hadoop.dll etc). As a result, if we try to run Hadoop in windows, we'll encounter ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path.

In this article, I'll describe how to build bin native distribution from source codes, install, configure and run Hadoop in Windows Platform.

Tags:

Expand Shortened Link using Java

28,202 views
By Abhijit Ghosh on Oct 22, 2013 11:32:36 AM

Nowadays we use different URL shortening services (like bit.ly, TinyURL, Google URL Shortener etc.) to shorten long URL to fit in micro-blogging sites (like Twitter), to beautify a link, view analytics on link clicks, make a link manageable for sharing (in SMS or printed hard copy, book, magazine etc.) or obscure the underlying address. But large portion of shortened links are used just to disguise spam or bad-sites containing malware, spyware, XSS attacks etc. So for safe browsing, sometimes revealing the destination of shortened link is necessary too.

Here, we'll discuss one programmatic approach (using java.net.HttpURLConnection) to expand shortened links.

Tags:

Spring Security HTTP Basic Authentication Example

34,065 views
By Abhijit Ghosh on Sep 9, 2013 1:36:07 PM

HTTP basic authentication (BA) is a simple authentication mechanism. When a web client requests any secured web resources, server sends an HTTP response with status code 401 (Unauthorized) and WWW-Authenticate HTTP header like WWW-Authenticate: Basic realm="realm here". And browser pops up a login dialog prompting for User name and Password for that realm.

This example shows how to configure HTTP basic authentication using Spring Security framework.

Tags:

Spring Security Custom Login Form Example

78,283 views
By Abhijit Ghosh on Sep 5, 2013 11:23:47 AM

In previous posts Spring Security 3 Hello World Example and Spring Security Logout Example, we have used default login form generated by Spring Security framework. Now we'll set up a custom login form for authentication with username and password.

Tags:

Problem: failed to create task or type eclipse.refreshLocal

22,268 views
By Abhijit Ghosh on Aug 30, 2013 1:32:41 PM

Eclipse platform provides different useful Ant tasks to interact with the workspace. If you have added any such Ant task (say eclipse.refreshLocal) in your ant build script and started getting "Problem: failed to create task or type eclipse.refreshLocal. Cause: The name is undefined.", then this is the post worth looking into.

Tags:

About this 'Hello World' site

This site is mainly developed to share coding and technology learning experiences on java / j2ee based technologies.

Simple tutorials / codes have been shared to learn a new technology. Full source code is also available for download.