I removed tomcat server after going into windows-->preferences-->server-->run time environments
- Open the Java Build Path property page of your project and select the Classpath node. Unless you select that node, the buttons to Add a Library won't enable.
- Select the Server Runtime type of Library from the list. Continue through the later pages in the dialog until you've selected the runtime you intended. Once finished, your Servlets will be recompiled the next time a build happens.
CodePudding user response:
i fond the solution for this.to solve this issue just right click on project name and go to properties and then click on project facets. After that click on runtimes and tick on Apache tomcat and and jre and then apply.done.enter image description here