Here this is my error when I am trying to run the web.xml of my project in Eclipse.
This is the main error that I am facing when I am trying to run the
This would periodically happen with me. Even though the dependency was correct and even though I had previously started the server in Eclipse with no problems. However, if I would change code while the server was running, sometimes I would get this problem.
I would remove the application from the server. Start the server. Stop the server. Then, re-run 'mvn eclipse:eclipse -Dwtpversion=2.0" (probably similar to Project->Clean).
Then, hit F5 to Refresh the project. Add the application to the server. Start the server.
Sometimes changing code while the server is running or if it is stopped incorrectly, this also blocks the port (sometimes shutting down eclipse or restarting my computer is required).