Anupam,
You are facing this problem because you have conflicting version of class org.apache.log4j.Level in your classpath. You need to remove any conflicting jars as mentioned in previous posts. I hope you know how to see different versions of classes/jars present in your IDE. Updating this info, since other users may find this information useful..
Thanks,
Sanjeev