My index.jsp is under WEB-INF.
Move it outside of WEB-INF, directly into the .war.
Thanks so much Jaikiran!
I was use to packaging the content under WEB-INF.
By the way, since you say you are a beginner, I would recommend you buy a Java EE book which explains the concepts in detail. Not all resources should be packaged outside of WEB-INF. There are some resource which should reside in the WEB-INF folder.
It's a common strategy to package content such as JSP's in the WEB-INF directory. This is done because this directory is explicitly protected from direct access from a web browser.
The JSPs are rendered by invoking a java servlet or similar mechanism which then forwards to the WEB-INF/some-page.jsp for rendering the response:
I am looking into setting up a simple JSF page using prime faces. How would you recommend structuring the project? Where would the .xhtml pages be placed? Inside the WEB-INF?