简体   繁体   English

WELD-001437:普通范围的bean类javax.faces.component.UIViewRoot是不可代理的,因为类型是final或包含final方法

[英]WELD-001437: Normal scoped bean class javax.faces.component.UIViewRoot is not proxyable because the type is final or it contains a final method

When deploying a dynamic web project with JSF facet to Eclipse+GlassFish, the following error occurs: 将具有JSF构面的动态Web项目部署到Eclipse + GlassFish时,会发生以下错误:

错误截图

The message says: 消息说:

WELD-001437: Normal scoped bean class javax.faces.component.UIViewRoot is not proxyable because the type is final or it contains a final method public final void javax.faces.component.UIComponent.popComponentFromEL(javax.faces.context.FacesContext) - com.sun.faces.cdi.ViewProducer@1ccfebd3 WELD-001437:正常范围内的bean类javax.faces.component.UIViewRoot是不可代理的,因为类型是final或它包含final方法public final void javax.faces.component.UIComponent.popComponentFromEL(javax.faces.context.FacesContext) -com.sun.faces.cdi.ViewProducer@1ccfebd3

How is this caused and how can I solve it? 这是怎么造成的,我该如何解决? The same codebase and server works fine in Netbeans. 相同的代码库和服务器在Netbeans中可以正常工作。

Because your NetBeans project has been worked successful. 因为您的NetBeans项目已成功完成。 In this case, You should import exist NetBeans project to Eclipse IDE , don't create new Eclipse project. 在这种情况下,您应该现有的NetBeans项目导入到Eclipse IDE中 ,不要创建新的Eclipse项目。 This make avoid errors or mistakes. 这样可以避免错误或错误。
Turn off all other web application servers, avoid port number collision. 关闭所有其他Web应用程序服务器,避免端口号冲突。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.IllegalStateException:组件javax.faces.component.UIViewRoot不是预期的类型 - java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot not expected type java.lang.IllegalStateException:组件javax.faces.component.UIViewRoot@19ded20不是预期类型 - java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot@19ded20 not expected type WELD-001303范围类型javax.faces.view.ViewScoped没有活动的上下文 - WELD-001303 No active contexts for scope type javax.faces.view.ViewScoped Weld 1.0.1-Final:即使在开始对话后,对话范围Bean仍保持重新创建吗? - Weld 1.0.1-Final: Conversation Scope bean keeps recreated even after beginning conversation? EAR文件中打包了带有JSF流的WELD-001303-WELD-001303:作用域类型javax.faces.flow.FlowScoped没有活动上下文 - WELD-001303 with JSF Flows Packaged in EAR File - WELD-001303: No active contexts for scope type javax.faces.flow.FlowScoped WELD-001303:范围类型javax.faces.flow.FlowScoped没有活动上下文 - WELD-001303: No active contexts for scope type javax.faces.flow.FlowScoped WELD-001303范围类型javax.faces.flow.FlowScoped没有活动上下文 - WELD-001303 No active contexts for scope type javax.faces.flow.FlowScoped WELD-001303在直接访问时没有作用域类型javax.faces.flow.FlowScope的活动上下文 - WELD-001303 No active contexts for scope type javax.faces.flow.FlowScoped on direct access 无法将类型为java.lang.String的#{ad.userid}转换为类javax.faces.component.UIComponent - Cannot convert #{ad.userid} of type class java.lang.String to class javax.faces.component.UIComponent 导入javax.faces.bean.ManagedBean时出错“package javax.faces.bean不存在” - Error “package javax.faces.bean does not exist” at import javax.faces.bean.ManagedBean
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM