ERROR - The import javax.servlet.annotation cannot be resolved


Problem

The import javax.servlet.annotation cannot be resolved on eclipse.

Cause

servlet-api.jar included in buildpath doesn't support annotations.

Resolution 

Download and include servlet-api jar with higher version than 2.5.