Edit the pom.xml file. Add the following dependencies: javax.servlet, javax.servlet.jsp, javax.servlet.jsp.jstl, org.glassfish.web. also the exclusions: javax.servlet, javax.servlet.jsp, javax.servlet.jsp.jstl in the org.glassfish.web. Also mavenized the project from a pure dynamic web project.