새로운 프로젝트를 시작해서 새로운 다이나믹 웹 프로젝트를 열고 기존 프로젝트에서 handler 패키지를 복붙했는데 해당 Error가 떴다.
The import javax.servlet.http cannot be resolved
프로젝트에서 우클릭 → Properties
Project Facets → Runtimes에서 아파치톰캣 서버 체크 → Apply and Close
해결!