没有发现的新豆子

发布于 2025-01-24 03:29:19 字数 923 浏览 2 评论 0 原文

我有一个在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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文