• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

404 error loading jsf page

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I've edited it
 
Greenhorn
Posts: 14
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
lolz best of luck
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic