the type javax.servlet.ServletException cannot be resolved. It is indirectly referenced from required .class files
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>