| Author |
no faces context
|
sanju dharma
Ranch Hand
Joined: Oct 19, 2000
Posts: 45
|
|
Hi , I am new to JSF. I am following tutorials at http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html. But I am getting above error "no faces context" when I go to main URL . Looks like it is very basic error . I searched on this forum and on search engines and tried various things . But no result. Can anybody advice ? Also, if you anybody knows better tutorial on JSF than above, please let me know. Thanks.
|
 |
Edisandro Bessa
Ranch Hand
Joined: Jan 19, 2006
Posts: 584
|
|
Hey sanju, Depending on your faces servlet configuration in web.xml file, you have to type your url something like this: <a href="http://localhost/yourapp/yourpage<b rel="nofollow">.faces</b>" target="_blank">http://localhost/yourapp/yourpage.faces or <a href="http://localhost/yourapp<b rel="nofollow">/faces/</b>yourpage.jsp" target="_blank">http://localhost/yourapp/faces/yourpage.jsp If you just type your url like http://localhost/yourpage.jsp for sure you will get a big fat NO FACES CONTEXT error.
|
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
|
 |
sanju dharma
Ranch Hand
Joined: Oct 19, 2000
Posts: 45
|
|
Hi Edisandro , Thanks for your reply. I tried based on your suggestion. In my case, I have welcome-file index.jsp in which i have only jsp:forward tag to forward to inputname.jsf or inputname.faces ( i tried with faces based on your comment) , but not working . If you can take a quick look over code, it is there in the link I provided in the first post. I am doing exactly same , except my app server is jboss rather than tomcat. Thanks again for the reply.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 12513
|
|
Here's my index.jsp: But I'd get the same error you do if it wasn't for this: The xhtml mapping is because I'm using Facelets. For ordinaty JSF it doesn't apply.
|
One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
|
 |
sanju dharma
Ranch Hand
Joined: Oct 19, 2000
Posts: 45
|
|
Hi Tim, I didnt get what you want to convey . Are you trying to answer my original question? I am getting "no faces context" error. As per your code snippets, I dont see any problem in my web.xml. Thanks
|
 |
Prem Khan
Ranch Hand
Joined: May 30, 2005
Posts: 189
|
|
|
Sometimes when a new user is having trouble with "no faces context" they have the sevlet mapping is set to *.jsf for the faces servlet. Try typeing in jsf instead of jsp.
|
 |
Satish navada
Greenhorn
Joined: May 28, 2007
Posts: 1
|
|
Hi Are you using jboss.Then jboss which version? In JBoss AS 4.0.3 and 4.0.4, the JBoss Application Server features built-in Java Server Faces support.All the jar files required are in jsf-libs folder.See this link for more information. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces If you dont want to use the built in feature just delete the files in jsf-libs folder. Regards Satish
Originally posted by sanju dharma: Hi , I am new to JSF. I am following tutorials at http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html. But I am getting above error "no faces context" when I go to main URL . Looks like it is very basic error . I searched on this forum and on search engines and tried various things . But no result. Can anybody advice ? Also, if you anybody knows better tutorial on JSF than above, please let me know. Thanks.
|
 |
 |
|
|
subject: no faces context
|
|
|