myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Wynn <bigwy...@gmail.com>
Subject Re: MyFaces Portlet Issue on WebSphere 5.1
Date Wed, 14 Dec 2005 21:12:53 GMT
On 12/14/05, Louis Burroughs <lburroug@aholdusa.com> wrote:
>
> Issue:
>
> My Faces portlets are not rendering.  I think it's because the FacesServlet
> is not being invoked to render the faces content.
>
> If I set my default-view to mypage.jsf or mypage.faces instead of mypage.jsp
> in the portlet.xml get an IllegalStateException telling me it cannot
> redirect because the response has already been commited.
>
> If I set my default-view to mypage.jsp and mypage.jsp has jsf tags for
> content I get an IllegalStateException telling me the the URI has to be
> absolute.
>
> Lastly, if I set my default-view to index.jsp and index.jsp redirects to
> home.jsf,  I get nothing (a blank portlet with no exceptions).
> <%
>         response.sendRedirect("home.jsf");
> %>
>
> Environment:
> MyFaces 1.1.1
> WebSphere Portal Server 5.1
>  WebSphere App Server 5.1
>
> Here is the trace of the last scenario:
>
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.lifecycle.LifecycleImpl
> class=org.apache.myfaces.lifecycle.LifecycleImpl method=
> org=IBM prod=WebSphere component=UNKNOWN
>           exiting renderResponse in
> org.apache.myfaces.lifecycle.LifecycleImpl
> [12/14/05 15:25:20:620 EST] 2a41f82b  I UOW=
> source=com.ibm.ws.webcontainer.srt.WebGroup org=IBM
> prod=WebSphere component=Application Server
>           SRVE0180I: [PTW_V3] [/wps/PA_1_0_1UH] [Servlet.LOG]: BodyPortlet:
> init
> [12/14/05 15:25:20:620 EST] 2a41f82b  I UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           MyFaces already initialized
> [12/14/05 15:25:20:620 EST] 2a41f82b  I UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           PortletContext
> 'C:\PROGRA~1\PORTAL~1\PORTAL~1\installedApps\PTW_V3_PA_1_0_1UH.ear\PTW_V3.war'
> initialized.
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           called facesRender
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           Non-faces request: contextPath = /wps/PA_1_0_1UH
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.application.jsp.JspViewHandlerImpl
> class=org.apache.myfaces.application.jsp.JspViewHandlerImpl
> method= org=IBM prod=WebSphere component=UNKNOWN
>           Created view /index.jsp
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.lifecycle.LifecycleImpl
> class=org.apache.myfaces.lifecycle.LifecycleImpl method=
> org=IBM prod=WebSphere component=UNKNOWN
>           entering renderResponse in
> org.apache.myfaces.lifecycle.LifecycleImpl
> [12/14/05 15:25:22:173 EST] 2a41f82b  I UOW=
> source=com.ibm.ws.webcontainer.srt.WebGroup org=IBM
> prod=WebSphere component=Application Server
>           SRVE0180I: [PTW_V3] [/wps/PA_1_0_1UH] [Servlet.LOG]: /index.jsp:
> init
> [12/14/05 15:25:22:183 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.util.DebugUtils
> class=org.apache.myfaces.util.DebugUtils method= org=IBM
> prod=WebSphere component=UNKNOWN
>           View after rendering
> ========================================
> <UIViewRoot id="NULL" family="javax.faces.ViewRoot" locale="en_US"
> renderKitId="HTML_BASIC" rendered="true" rendererType="NULL"
> rendersChildren="false" transient="false" viewId="/index.jsp"/>
> ========================================
>
> [12/14/05 15:25:22:183 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.lifecycle.LifecycleImpl
> class=org.apache.myfaces.lifecycle.LifecycleImpl method=
> org=IBM prod=WebSphere component=UNKNOWN
>           exiting renderResponse in
> org.apache.myfaces.lifecycle.LifecycleImpl
>
>
> Louis M. Burroughs III



have you tried setting the default-view to /mypage.jsp instead of mypage.jsp?
Mime
View raw message