无法在GlassFish 3.1.2中部署应用程序,使用jsf 1.2的Icefaces 1.8.1

问题描述:

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

的错误消息是

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

检查这个问题的答案: 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

UPDATE:

结帐http://anonsvn.icesoft.org/repo/icefaces/tags/icefaces-1.8.2a/icefaces/ 呼叫ICEfaces的文件夹内的蚂蚁build.all 。 从.war WEB-INF/lib目录下的lib文件夹复制icefaces jars(即移除icefaces1.8.2.jar,icefaces-comps-1.8.2.jar,icefaces-facelets-1.8.2.jar并将它们替换为相同的新罐子 - 来自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 3上的ICEfaces 1.8.2a版本库,因为在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的帖子开头:“我做了以下”

部署的.war后与1.8.2a ICEfaces的罐子错误走