'Eclipse HTTP 404 not found error the requested resource tomcat server error

Wanted to run my html file on eclipse tomcat server when I clicked run on server it gave me this error. enter image description here

Here is my html file enter image description here

I do not know why tomcat is not able to find my project file



Solution 1:[1]

Try right-clicking on the html file and choosing Run as> Run on server. Or change the url to http: // localhost: 8080 / NewFile3.html. The problem could be due to the fact that if you start the application starting from the project and not from the file, it looks for the index.html file, which is not present in your project. Alternatively, change the name of the html file to index.html. Hope this solves your problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Cinzia Bocchi