【问题标题】:cannot deploy application in Glassfish 3.1.2, Icefaces 1.8.1 with jsf 1.2无法在 Glassfish 3.1.2、Icefaces 1.8.1 和 jsf 1.2 中部署应用程序
【发布时间】:2013-05-01 02:39:31
【问题描述】:

我编写了一个使用捆绑的 IceFaces 1.8.1 和 jsf 1.2 的应用程序。但它无法在 Glassfish 3.1.2 中部署。

错误信息是

java.lang.ClassNotFoundException: org.icefaces.x.context.BridgeFacesContext2

【问题讨论】:

    标签: glassfish-3 jsf-1.2 icefaces-1.8


    【解决方案1】:

    检查这个问题的答案: JSF 1.2 app not working with GlassFish v3 还要检查: https://wikis.oracle.com/display/GlassFish/JavaServerFacesRI#JavaServerFacesRI-IwanttouseMojarra1.2inGlassfishv3

    还有: http://www.icesoft.org/JForum/posts/list/17044.page#sthash.4uwE5n1N.F9JR7G2x.dpbs

    但是,我在 Glassfish 4 上遇到了同样的问题,但尚未成功(部署正常,但我无法查看我的页面,原因是: java.lang.ClassNotFoundException: org.icefaces.x.context.BridgeFacesContext2

    更新:

    结帐http://anonsvn.icesoft.org/repo/icefaces/tags/icefaces-1.8.2a/icefaces/ 在 icefaces 文件夹中调用 ant build.all。 从 .war WEB-INF/lib 中的 lib 文件夹中复制 icefaces jar(这意味着删除 icefaces1.8.2.jar、icefaces-comps-1.8.2.jar、icefaces-facelets-1.8.2.jar 并将它们替换为相同的新 jars - lib 文件夹中的 1.8.2a 版本)。

    解释在这里:http://www.icesoft.org/JForum/posts/list/16568.page#sthash.3XjXYufx.dpbs

    注意:ICEfaces 1.8.2a 版本由官方 ICEfaces 1.8.2 版本和一个补丁组成,用于解决将 JSF 1.1 或 JSF 1.2 ICEfaces 项目部署到 Glassfish 3 时出现的问题。必须使用 ICEfaces 1.8.2a 版本Glassfish 3 上的库,因为原始 ICEfaces 1.8.2 运行时库在 JEE5/JSF 1.2 项目中使用时将失败并出现“不支持 JSF 2”错误。 - 查看更多信息:http://www.icesoft.org/JForum/posts/list/16568.page#sthash.3XjXYufx.dpuf

    从这里开始的步骤:http://www.icesoft.org/JForum/posts/list/17044.page#sthash.4uwE5n1N.F9JR7G2x.dpbs 请参阅 deryk.sinotte 的帖子,开头是:“我做了以下”

    使用 1.8.2a icefaces jar 部署 .war 后,错误消失了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-17
      • 2011-01-20
      • 2012-05-24
      • 2011-08-18
      • 1970-01-01
      相关资源
      最近更新 更多