• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404 error loading jsf page

 
Jayesh Mahato
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I've edited it
 
Cristian Adinanda
Greenhorn
Posts: 11
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never Mind. I upgraded from joss server 5 to jboss server 6 and now the application is working fine
 
Yahya Arshad
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lolz best of luck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic