Made Eclipse project "faceted" and added facet "Dynamic Web Module".