5 Replies Latest reply on Jul 17, 2013 1:31 AM by djezen

    RichFaces 4, WAS 8, WAS Portal, wsrp and templates usage/

    djezen

      Hi all!

       

      I'm trying to use JBoss RichFaces(4.2.3.Final) and Jboss Portlet Bridge (3.2.0.Final)  in Websphere Portal 8 by wsrp , but i get this error:

       

      0000001a application   E   Error Rendering View[/edt.xhtml]

                                       java.lang.IllegalArgumentException: only absolute URLs or full path URIs are allowed

          at com.ibm.ws.portletcontainer.core.impl.PortletResponseImpl.encodeURL(PortletResponseImpl.java:255)

          at org.jboss.portletbridge.context.PortletExternalContextImpl.encodeURL(PortletExternalContextImpl.java:532)

          at org.jboss.portletbridge.context.PortletExternalContextImpl.encodeResourceURL(PortletExternalContextImpl.java:971)

          at javax.faces.context.ExternalContextWrapper.encodeResourceURL(ExternalContextWrapper.java:132)

          at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:106)

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)

          at org.jboss.portletbridge.renderkit.portlet.PortletBodyRenderer.encodeBegin(PortletBodyRenderer.java:91)

          at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1754)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)

          at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)

          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

          at org.jboss.portletbridge.application.PortletViewHandler.renderView(PortletViewHandler.java:212)

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.renderFaces(Jsf20ControllerImpl.java:410)

          at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.renderPortletBody(Jsf20ControllerImpl.java:259)

          at org.jboss.portletbridge.PortletBridgeImpl.doFacesRequest(PortletBridgeImpl.java:262)

          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:516)

          at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:437)

          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)

          at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:411)

          at javax.portlet.GenericPortlet.render(GenericPortlet.java:222)

          at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:576)

       

      Portlet app is deployed on remote WAS 8 and used on WAS Portal (other machine) by the wsrp.

       

      Well, I'm use simple xhtml this great worked. But if i'm  trying on my.xhtml "ui:composition template='some_path'" and portlet throws this exception

       

      What wrong?

      Interested, usage relative path in image on a4j:commandButton is not problem.

       

      Also, I see https://github.com/portletbridge/portletbridge/tree/master/examples/richfaces-simple

       

      thanks!

       

      P.S.

      JSF implementation: Mojarra 2.1.19.