1

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

错误信息是

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

4

1 回答 1

0

检查此问题的答案: 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 时出现的问题。必须在 Glassfish 上使用 ICEfaces 1.8.2a 版本库3,因为在 JEE5/JSF 1.2 项目中使用原始 ICEfaces 1.8.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 后,错误消失了

于 2013-10-14T06:47:02.350 回答