-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
8.0.0.Final
-
None
I added JSF 1.2 support by follwing this tutorial and the sample project provided by Stan Silvert works fine. But when I deploy our own app I always get the following error message:
ERROR [request] UT005023: Exception handling request to /backoffice/login.faces: java.lang.NoSuchMethodError: javax.faces.context.FacesContext.getAttributes()Ljava/util/Map;
[exec] at org.jboss.weld.jsf.ConversationAwareViewHandler.getActionURL(ConversationAwareViewHandler.java:103)
[exec] at javax.faces.application.ViewHandlerWrapper.getActionURL(ViewHandlerWrapper.java:147)
[exec] at com.sun.facelets.FaceletViewHandler.getActionURL(FaceletViewHandler.java:807)
[exec] at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer.getActionUrl(HtmlRenderer.java:77)
[exec] at org.apache.myfaces.custom.form.HtmlFormRenderer.getActionUrl(HtmlFormRenderer.java:45)
[exec] at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:102)
[exec] at org.apache.myfaces.custom.form.HtmlFormRenderer.encodeBegin(HtmlFormRenderer.java:134)
[exec] at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:816)
[exec] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
[exec] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
[exec] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
[exec] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
[exec] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
[exec] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
[exec] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
...
This message indicates that the jsf-injection module still references a newer JSF API but not the JSF-1.2 API. I also had a look at the implementation of this module and I saw that the class ConversationAwareViewHandler which is included in the new jsf-injection module cannot work with JSF 1.2 since it calls methods from JSF 2.x.
I also posted this issue here and need a solution.