[英]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.