I am getting the below messages when my JSF page gets rendered. The page is rendered correctly however in the Console the message below repeats itself numerous times…
INFO: ERROR: Unable to get Faces Context for session variable: localeBean
11:54:27,090 INFO [STDOUT] Nov 24, 2009 11:54:27 AM com.web.util.faces.UtilFacesFuncs log
INFO: Most likely, you’ve requested a Faces object from a NON-Faces (i.e. Servlet) context.
In my JSF I am usign localebean as follows:
<f:view locale="#{localeBean.userLocaleLoggedIn}">
In the faces-config file I have it defined as below:
<managed-bean>
<description>Locale Bean</description>
<managed-bean-name>localeBean</managed-bean-name>
<managed-bean-class>com.mg.faces.LocaleBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
In my class LocaleBean there is a method getUserLocaleLoggedIn() which is the code that gets executed when the JSF page executes:
<f:view locale="#{localeBean.userLocaleLoggedIn}">
On debugging my jsp I can see that method being called and everyhting is fine, I debug my jsp all the way thru till it creates the footer, just when it is rendering to the browser these errors are thrown about 20 + times repeatedly. It only happens on tihs jsp as it is a new one I have added. I tried comparing with existing jso I cannot see anything different, Does anyone know what I shud be looking out for?
Any help much appreciated.
Thanks.
Regards
Sorry my comment I added above did not come across correctly, here is what I have in my web.xml:
Also my url I use is
http://localhost.com/context/register/mypage.htmI have these jsp under the folder register. I can call other jsp from the register folder
and this error does not appear…. just happens for this particular jsp that I have added.
I am trying to add my full mappings but the way the code tags work here, it is not coming across since hte mappings have tags… I tried blockquotes provided, but still this editor is not able to display my mappings correctly, apologies!
Any idea how I should be calling my url. Thanks.