简体   繁体   English

Class 未找到异常:javax/faces/component/UIComponent

[英]Class not found exception : javax/faces/component/UIComponent

I trying to upgrade myfaces from 2.0.18 to the latest 3.0.1 but I am getting Class not found exception with the below error我试图将 myfaces 从 2.0.18 升级到最新的 3.0.1,但我收到 Class not found 异常并出现以下错误

noClassDefFound: javax/faces/component/UIComponent noClassDefFound:javax/faces/component/UIComponent

Could you please let me know what is causing this issue or where can i get this class to add.你能告诉我是什么导致了这个问题,或者我在哪里可以得到这个 class 来添加。

Your issue is that version of MyFaces is for jakarta libs not javax libs.您的问题是 MyFaces 版本适用于jakarta库而不是javax库。

From Apache MyFaces docs version 3.0.1:来自 Apache MyFaces 文档版本 3.0.1:

"The upcoming Jakarta Faces 3.0. It's equals to JSF 2.3 but with "jakarta.faces" packages and constants instead of "javax.faces"." “即将推出的 Jakarta Faces 3.0。它等于 JSF 2.3,但使用“jakarta.faces”包和常量而不是“javax.faces”。

https://github.com/apache/myfaces https://github.com/apache/myfaces

暂无
暂无

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

相关问题 无法将类型为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 org.primefaces.model.menu.DefaultSubMenu 不能转换为 javax.faces.component.UIComponent - org.primefaces.model.menu.DefaultSubMenu cannot be cast to javax.faces.component.UIComponent <f:attribute name=“id”>在javax.faces.component.UIComponent.setValueExpression上抛出java.lang.IllegalArgumentException - <f:attribute name=“id”> throws java.lang.IllegalArgumentException at javax.faces.component.UIComponent.setValueExpression java.lang.NoSuchMethodError:javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava / util / Map; 迁移到JSF 2.2之后 - java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; after migrating to JSF 2.2 找到所需类javax.faces.FactoryFinder的多个版本 - Found multiple versions of the required class javax.faces.FactoryFinder javax.faces.FacesException:表达式错误:命名对象:org.omnifaces.component.validator.ValidateMultiple 未找到 - javax.faces.FacesException: Expression Error: Named Object: org.omnifaces.component.validator.ValidateMultiple not found NoClassDefFoundError:TomEE启动时的javax / faces / component / UIViewAction - NoClassDefFoundError: javax/faces/component/UIViewAction on TomEE startup 使用JSF Primefaces调用Web服务时发生异常:找不到工厂javax.faces.component.visit.Visit ContextFactory的备份 - Exception when calling webservice with JSF Primefaces: Could not find backup for factory javax.faces.component.visit.Visit ContextFactory javax.faces.component.UIInput.CONVERSION vs javax.faces.converter。* - javax.faces.component.UIInput.CONVERSION vs javax.faces.converter.* 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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM