The type javax.servlet.ServletException cannot be resolved. It is indirectly referenced from required .class files

Please add below dependency.

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <version>3.1.0</version>
    <scope>provided</scope>
</dependency>
Content Protection by DMCA.com
Please Share