@Somashekar: have you tried to create a war and deploy separately instead of from IDE (Assuming you are trying to deploy from IDE)? I am facing something similar although my code works perfectly when I create a war and deploy from tomcat console, however I get 404 when I do the same in eclipse.
I am still trying to figure out a solution.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!