That may mean one of a few problems I think. The whole bean is not
found, or just the property. If the configuration file for faces is
"faces-config.xml" and located in the WEB-INF directory, myfaces will
"auto-magically" find it. If it has a different name however, it must
be specifically specified in the web.xml.
Looking at the number guess demo, the name is the "correct" name, and
it is located in the WEB-INF directory, so that should not be the
issue. Also, the manaed-bean for NumberBean is registered in there.
So check:
1. that the class is indeed on the class path (in a jar in WEB-INF/lib
or classes in WEB-INF/classes)
2. verify the presence of the property. Remembering that "getProperty"
results in "property" in the jsp/xhtml
I'm posting this to the facelets user list as well to see if Jacob has
any ideas ([EMAIL PROTECTED]).
-Andrew
On 2/27/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I found it is my configuration problem in web.xml.
> Now I can get that page at first, but after I clicking guess. It shous
> exception
>
> javax.faces.el.PropertyNotFoundException:
> /C:/bea91/user_projects/domains/jsfTrail/autodeploy/webapp/guess.xhtml
> @21,114 value="#{NumberBean.guess}": Target Unreachable, identifier
> 'NumberBean' resolved to null
> at
> com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:96)
> at
> com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:111)
> at javax.faces.component.UIInput.getConvertedValue(UIInput.java:759)
> at javax.faces.component.UIInput.validate(UIInput.java:684)
> at javax.faces.component.UIInput.executeValidate(UIInput.java:897)
> at javax.faces.component.UIInput.processValidators(UIInput.java:438)
> at javax.faces.component.UIForm.processValidators(UIForm.java:190)
> at
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:977)
> at
> javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:640)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:240)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
> at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
> at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
> at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
>
> Backing back is not initlized.
>
>
> javax.faces.el.PropertyNotFoundException:
> /C:/bea91/user_projects/domains/jsfTra
> il/autodeploy/webapp/guess.xhtml @21,114 value="#{NumberBean.guess}": Target
> Unr
> eachable, identifier 'NumberBean' resolved to null
> at
> com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.jav
> a:96)
> at
> com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConverte
> dValue(HtmlBasicInputRenderer.java:111)
> at javax.faces.component.UIInput.getConvertedValue(UIInput.java:759)
> at javax.faces.component.UIInput.validate(UIInput.java:684)
> at javax.faces.component.UIInput.executeValidate(UIInput.java:897)
> Truncated. see log file for complete stacktrace
> >
>
> But it works fine in tomcat 5.5
>
> I use myface + facelet in your recommanded version.
>
>
> --
>
> Anthony Hong
>