| Author |
404 error loading jsf page
|
Jayesh Mahato
Greenhorn
Joined: Jun 24, 2011
Posts: 17
|
|
Hi,
I am newly using JBoss Development Studio 4 GA to develop JSF web project. I am following this tutorial for reference. I have followed all the steps correctly but still i am getting this error:
HTTP Status 404 - /jsfHello/index.jsf
type Status report
message /jsfHello/index.jsf
description The requested resource (/jsfHello/index.jsf) is not available.
The web.xml mapping is as below:
Kindly help me in analyzing this and correcting the error!!!
|
 |
Yahya Arshad
Greenhorn
Joined: May 15, 2011
Posts: 26
|
|
is the above web.xml is your complete web.xml
i cant see opening tag of <web-app> but only closing tag???
|
 |
Jayesh Mahato
Greenhorn
Joined: Jun 24, 2011
Posts: 17
|
|
Sorry, I've edited it
|
 |
Cristian Adinanda
Greenhorn
Joined: Jun 24, 2011
Posts: 4
|
|
have you try call to another file? or may be just your file location? because for the web.xml i think its already correct. CMIIW
|
 |
Jayesh Mahato
Greenhorn
Joined: Jun 24, 2011
Posts: 17
|
|
I am following this tutorial:http://docs.jboss.org/tools/2.0.0.GA/legacy-jsf-struts/en/html/jsf_application.html
Its supposed to run the index.jsp file first which would redirect to inpuname.jsf(inputname.jsp) file and then to greeting.jsf(greeting.jsf) file.
|
 |
Yahya Arshad
Greenhorn
Joined: May 15, 2011
Posts: 26
|
|
do you have index.jsp page in your root Directory i think you have change your pages folder to jsfHello is that
first manually create an index.jsp file in your root of application folder and enter the following
there you change your pages folder into the folder you have in your real app
also insert
<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
</welcome-file-list>
and now access it localhost:8080/yourwebapp/
you will be redirected to that page
|
 |
Jayesh Mahato
Greenhorn
Joined: Jun 24, 2011
Posts: 17
|
|
Yes index.jsp is in the root folder and the other two pages are inside pages folder. specifying welcome files doesn't work
|
 |
Jayesh Mahato
Greenhorn
Joined: Jun 24, 2011
Posts: 17
|
|
Never Mind. I upgraded from joss server 5 to jboss server 6 and now the application is working fine
|
 |
Yahya Arshad
Greenhorn
Joined: May 15, 2011
Posts: 26
|
|
lolz best of luck
|
 |
 |
|
|
subject: 404 error loading jsf page
|
|
|