By default, when you open the project root folder as in http://localhost:8080/ProjectName/
instead of a physical file as in http://localhost:8080/ProjectName/Index.jsp
, then the server will lookup for a welcome file in web.xml
. If none is found, then you’ll get this 404 “Page not found” error.
In your case, URLs and file names are case sensitive. You declared index.jsp
to be the welcome file, but you mentioned that you’ve an Index.jsp
. Rename it to index.jsp
and then you’ll be able to open the webapp’s context root with the welcome file this way.
See also:
- How to configure welcome file list in web.xml
- Change default homepage in root path to servlet with doGet
- Set default home page via <welcome-file> in JSF project