No Spring WebApplicationInitializer types detected on classpath

Wah, what a stupid error it was!

My Spring web app, which was running smoothly, refused to start. I don’t find any logs in log4j or tomcat log. Only clue I had was –

No Spring WebApplicationInitializer types detected on classpath

Here is how I solved it –

  1. Stop the tomcat
  2. Clean and build all eclipse projects
  3. Goto server tab and select the tomcat server. Press clean. Press clean work directory.
  4. Right click on the tomcat and remove it.
  5. Delete the tomcat from the eclipse run times
  6. Add tomcat server to the eclipse servers again
  7. Start the application


Setting up Eclipse IDE for Hadoop 2.5.0


You need to look at the following blog posts to understand this post in a better way.

  1. Copying the File to HDFS file system
  2. A java program to read the file from HDFS
  3. A java program to read the file from HDFS – 2
  4. Java program to read a file from Hadoop Cluster 2 (with file seek)
  5. Java program to copy a file from local disk to Hadoop Cluster with progress bar

Till now we are bugging with terminal to write the java programs. Here is how you can setup the Eclipse development environment for Hadoop.

  • This tutorial assumes you have working Hadoop 2.5.0 setup in your environment.
  • This tutorial assumes you have m2-eclipse maven plugin
  • This tutorial assumes you have installed latest version of Maven installed on your system

Set up a plain java maven project. I set it up by name my-app.

Cloud era repository is not still available…

View original post 192 more words

Maven Tutorial – 3

Lets create a simple application as we have seen in Tutorial -2.

Execute the following command. Ensure you have jdk bin and maven bin folders in path!

$ mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DartifactId=my-app

We are generating a simple project based on generate architype – a simple template. After issuing the above command, you will see a list of lines and characters are running on the screen. You will be asked some questions, just press enter!


You can see a new folder is created with your artifact id, which is ‘my-app’ here! If you browse through this folder, you will see the following.

$ ls
$ cd my-app/
$ ls
pom.xml src
$ cd src
$ ls
main test
$ cd main
$ ls
$ cd java
$ ls
$ cd org/grassfield/app/
$ ls – Created by Maven


Lets modify it now.

Here it is!


Lets see what’s written inside pom.xml

pandian@pandian-SH560:~/pandian/my-app$ cat pom.xml
<project xmlns="" xmlns:xsi=""





POM refers to junit alone as its dependency!

Now lets compile it.

$ mvn compile



Lets test it now! The following is the maven test case.


$ mvn test


Lets package it now!

$ mvn package


Console is interesting. But you love Eclipse IDE like, right? Lets create the Eclipse project structure for this artifact.

$ mvn eclipse:eclipse


Now import the java project from the location highlighted above.

maven10 - Eclipse IDE

Lets see how to work with Eclipse using Maven in my next post.

Related posts:

Maven – 1

Maven – 2

Subversioning in windows and Eclipse integration

This is an interesting drill I have done yesterday. Microsoft VSS is mainly used version control in my organization; I am happy with SVN. So here comes the installation and creation of SVN repositories. You will find the integration of SVN with eclipse as well.

Installing the Subversion in Windows box

Prerequisites: Install Python for windows, make sure no servers are listening to port 80 (else, you can reconfigure the subversioning portal after installing)

Download the Collabnet subversioning tool from (Thanks Siva for giving the link)

Install the Collabnet subversion tool downloaded. It is pretty much straight forward. At the end, You will see the local file that gives access to your SVN server. You need to wait the console status becomes ‘ready‘. Then click on the URL given with the stated credentials.

Logging in as admin/admin

Verify the server status. Make sure subversion status us UP and green. Note the repository parent path is given here. We will be using this later while integrating this with Eclipse.

Clicking on Repositories tab, we can add/modify repositories and defind the access rules.

fyi! Creating a new repository.

Users Tab, Create users here with specified user role.

Subversion is up and running now. We have created users and repositories.

Installing Eclipse plugin for SVN

Now we will be installing the subversion plugin for Eclipse IDE. Add to update sites. Select the necessary tools in ‘Collaboration’. (Don’t forget to include SVN tools).

We need to install two things.

  1. SVN plugin
  2. SVN connector

To start, lets install the plugin.

You may be asked for Eclipse restarts couple of times.

This is the time to install SVN connector. I have selected two as follows.

Thats all!

Now change the prospective to SVN.

We can add new SVN location to check out existing projects.

Else, we can share an existing project from Eclipse. Select Team>Share to push a Eclipse project into SVN.

Enter the svn location and credentials

Share the new project

Commit the code

Done! See the SVN globe symbol in the eclipse project now!

Happy stitching!