我有一个在WebLogic上运行的Java Web应用程序,并在100个左右的bean设置中设置了注释:
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
@ViewScoped
@ManagedBean(name = "[beanName]")
public class BeanPage
突然间,当我添加新bean时,我从xhtml引用它们时会遇到以下错误:
javax.faces.FacesException: #{[beanName.init]}: javax.el.PropertyNotFoundException: [url.xhtml] @10,53 action="#{beanName.init}": Target Unreachable, identifier 'beanName' resolved to null
所有现有bean都可以正常工作,但是我始终用新豆子遇到此错误。即使是现有工作豆的副本。我没有在Tomcat上运行此错误,新的豆类运行良好。
我已经看到了有关设置豆并处理不同错误消息的项目,但是当所有内容出现正确设置时,我认为它只是解决问题时,它不会解决我的问题:识别和求解Javax.el.propertynotfoundexception:Target无法
实现它是新鲜的,删除服务器并重新创建它。
运行Weblogic 12C,Eclipse 2019-12,JSF 2.2,CDI 2.0,PrimeFaces 10。
I have an Java web application, running on WebLogic, with 100 or so existing beans setup with annotations in the form:
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
@ViewScoped
@ManagedBean(name = "[beanName]")
public class BeanPage
Suddenly when I add new beans I get the following error when referencing them from the xhtml:
javax.faces.FacesException: #{[beanName.init]}: javax.el.PropertyNotFoundException: [url.xhtml] @10,53 action="#{beanName.init}": Target Unreachable, identifier 'beanName' resolved to null
All the existing beans work fine, but I consistently get this error with new beans. Even if it's a copy of an existing working bean. I do not get this error running on Tomcat, the new beans work well.
I have seen the item on setting up beans and tackling different error messages, but I don't think it addresses my problem when everything appears setup correctly it's just new beans running into issues: Identifying and solving javax.el.PropertyNotFoundException: Target Unreachable
I have tried Maven clean, update, deleting the project and checking it out fresh, deleting the server and recreating it.
Running Weblogic 12c, Eclipse 2019-12, JSF 2.2, CDI 2.0, Primefaces 10.
发布评论