Spring Annotation-based controllers not working if it is inside jar file

Solution 1:

When you export the jar file using the export utility in eclipse there is a option called Add directory entries. Check this option and export the jar file, this will solve the problem.