找不到 "http://richfaces.ajax4jsf.org/rich" 的标记库描述符

Can not find the tag library descriptor for "http://richfaces.ajax4jsf.org/rich"

我一直在尝试将我的项目从 JSF 1.0 和 RichFaces 3.1.4 迁移到 JSF 2.2 和 RichFaces 4.5.2。

我想保持页面 JSP 的格式(甚至可能吗?)

在替换 RichFaces 的 jar 时,出现以下错误:

Can not find the tag library descriptor for "http://richfaces.ajax4jsf.org/rich"

这个错误的原因是什么?

自 JSF 2.0 以来,

JSP 已弃用。 Facelets (XHTML) 继承了它。因此,像 RichFaces 4+ 和 PrimeFaces 2+ 这样的 JSF 2.0 兼容组件库不再支持 JSP。这些组件库不再包含 JSP 标签库。因此出现此错误。

将 JSP 迁移到其后继 Facelets。

另请参阅:

  • Migrating from JSF 1.2 to JSF 2.0
  • Why Facelets is preferred over JSP as the view definition language from JSF2.0 onwards?