2 build path entries missing Maven project

2 build path entries missing Maven project

If you have created new maven project and see 2 build path entries are missing it means dependency servlet api and server run time is not included in your project:

  • Please include below dependency in your pom.xml file and update your maven project:
<dependency>
	<groupId>javax.servlet</groupId>
	<artifactId>servlet-api</artifactId>
	<version>2.5</version>
</dependency>
  • Now set server run time using this tutorial

Important: If you include only server run time to the project your issue will be resolve on your local system but to compile classes which is uses servlet-api from different server you must include servlet-api dependency in your project.

2 build path entries missing Maven project

  • For latest version of servlet api please refer maven repository here 

Leave a Reply

Your email address will not be published. Required fields are marked *