I know its very strange. But I was able to get rid of the problem. This is what I did.
1) I made some syntax error in one of the Java Bean and in one of the vector class and tried to build it. It broke the application entirely.
2) Then I fixed the error and rebuild it again.
3) The problem got resolved.