After searching on google, I found how to solve this error.Add this to your Maven dependency(pom.xml):
Do comment if you find it useful, as much as it helped me.
<!-- dependency to fix JSPServletException -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>jsp-api</artifactId>
<version>6.0.32</version>
<scope>provided</scope>
</dependency>