If you are using Maven, the solution is simple. Add the following dependency with the provided scope:
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency>
You can also use the following dependency:
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <type>jar</type> <scope>provided</scope> </dependency>
Thanks a lot !! It helped to me to solve the issue !!
ReplyDelete