java - When i am starting my Tomcat, instead of opening the welcome file, it is downloading it. Can any one help me out here.? -


It's downloading "login.xhtml" whenever I'm starting my server. This webcontent is inside the page folder that I have used for the welcome file list in the web site, "/pages/login.xhtml" except it is being eclipse, I'm getting a 404 error from the browser

If you have a folder folder under the root (i.e. the level on the same form as the web-floph folder ), Which I believe is the case here, then welcome the file list To configure, you must give the path as pages / login.xhtml. Code: pages / login.xhtml

You should not start the path with "/" 404 is a clear signal of this hope that it helps.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -