我要升级现有的项目JSF2.I在SUN RI和myfaces的组合中遇到了很多问题,所以我从classpath中删除了所有的SUN RI,现在facelets和myfaces的组合给出了问题。我想知道我们是否消除facelets并使用apache myfaces应该是taglib命名空间?我得到这个错误
27 Dec, 2010 7:08:28 PM org.apache.myfaces.view.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/login.xhtml]
java.lang.NullPointerException at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57)
at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:45)
at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:322)
at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:369)
at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:363)
at org.apache.myfaces.view.facelets.tag.UserTagHandler.apply(UserTagHandler.java:116)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51)
at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51)
如果有人参与JSF2升级,请帮助我。
答案 0 :(得分:0)
我目前正在使用MyFaces 2.0.2开发JSF 2 / Facelets项目。我只有myfaces-impl
和myfaces-api
JAR以及类Compath中的Apache Commons。
My Facelets名称空间声明为xmlns:ui="http://java.sun.com/jsf/facelets"
。