MyFaces on 7.2.0
nickarls May 8, 2013 1:43 AMHi,
I'm having trouble running the ICEfaces showcase with MyFaces on 7.1.2. This is what I've done
* Start with a fresh EAP 6.1.0.Alpha
* Started with install-myfaces-2.1.8.cli.zip from https://community.jboss.org/wiki/DesignOfAS7Multi-JSFFeature (edited absolute paths into the files since on Windows it assumes C:\, changed the jsf injection lib to .Final since the SNAPSHOT was no longer compatible
* Set default-jsf-impl-slot="myfaces-2.1.8" in the JSF subsystem
* Remove the faces.jar from the showcase demo and deploy it.
On access I get
08:34:01,610 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/showcase].[Faces Servlet]] (http-/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException at org.apache.myfaces.shared.renderkit.html.util.ResourceUtils.renderDefaultJsfJsInlineIfNecessary(ResourceUtils.java:228) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:131) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:585) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:515) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:78) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:909) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:1587) [myfaces-impl-2.1.8.jar:2.1.8] at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:335) [icefaces-compat.jar:] at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:79) [icefaces-compat.jar:] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:632) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:530) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:78) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:909) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:1587) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:530) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) [myfaces-api-2.1.8.jar:2.1.8] at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1972) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) [myfaces-impl-2.1.8.jar:2.1.8] at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) [myfaces-impl-2.1.8.jar:2.1.8] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) [myfaces-api-2.1.8.jar:2.1.8] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
The stacktrace does include myfaces so I think for some part it is recognized.
It's of course a possibility that the showcase has some bug but it is known to work with mojarra and myfaces on tomcats OOTB.
Where to start looking?