[jboss-user] [JBoss Portal] - JSF Portlet not rendering view - Jsf portletbridge bridge no
SreeniJakka
do-not-reply at jboss.com
Mon Jul 7 14:54:29 EDT 2008
Hello
I am trying to get a JSF/Facelets/RichFaces Portlet working in JBoss Portal using the PortletBridge.
I finally get an empty portlet but no view content. I see the following errors in the log file:
2008-07-07 14:46:56,794 DEBUG [org.jboss.portletbridge.context.FacesContextFactoryImpl] Servlet request - create HttpServlet version of the ExternalContext
2008-07-07 14:46:56,882 DEBUG [org.ajax4jsf.event.AjaxPhaseListener] Process before phase RESTORE_VIEW 1
2008-07-07 14:46:56,882 DEBUG [org.ajax4jsf.event.InitPhaseListener] Perform additional framework initialization on first request
2008-07-07 14:46:56,882 DEBUG [org.ajax4jsf.application.ViewHandlerWrapper] Create new instance of alternate handler class org.jboss.portletbridge.application.FaceletPortletViewHandler
2008-07-07 14:46:57,039 DEBUG [org.ajax4jsf.event.InitPhaseListener] Remove init phase listener from factories
2008-07-07 14:46:57,040 DEBUG [org.ajax4jsf.event.AjaxPhaseListener] Process after phase RESTORE_VIEW 1
2008-07-07 14:46:57,050 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] phase(RENDER_RESPONSE 6,org.jboss.portletbridge.context.FacesContextImpl at 154e317) threw exception: javax.portlet.faces.BridgeException: Jsf portletbridge bridge not initialised Jsf portletbridge bridge not initialised
org.jboss.portletbridge.application.PortletStateHolder.getInstance(PortletStateHolder.java:125)
org.jboss.portletbridge.lifecycle.PortalPhaseListener.beforePhase(PortalPhaseListener.java:108)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
org.jboss.portal.portlet.impl.jsr168.api.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:86)
com.cypress.portal.BillingSummary.doView(BillingSummary.java:27)
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:244)
javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
Here is what I have in my libs:
Rich Faces 3.2.0.GA jars
jboss-portletbridge-1.0.0.B2 jars
jsf-facelets.jar
my faces-config.xml ---->
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<view-handler>
org.jboss.portletbridge.application.PortletViewHandler
</view-handler>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
<faces-context-factory>
org.jboss.portletbridge.context.FacesContextFactoryImpl
</faces-context-factory>
<managed-bean id="billingSummaryBean">
<managed-bean-name>billingSummaryBean</managed-bean-name>
<managed-bean-class>
com.cypress.beans.BillingSummaryBean
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<render-kit>
<component-family>javax.faces.ViewRoot</component-family>
<renderer-type>javax.faces.ViewRoot</renderer-type>
<renderer-class>
org.jboss.portletbridge.renderkit.portlet.PortletAjaxViewRootRenderer
</renderer-class>
</render-kit>
</faces-config>
Here is my web.xml --->
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>
org.jboss.portletbridge.application.FaceletPortletViewHandler
</param-value>
</context-param>
<context-param>
<param-name>javax.portlet.faces.renderPolicy</param-name>
<param-value>ALWAYS_DELEGATE</param-value>
</context-param>
<context-param>
<param-name>
javax.portlet.faces.preserveActionParams
</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
<param-value></param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>NONE</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>NONE</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<!-- JSF -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/rfRes/*</url-pattern>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/xhtml/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>/xhtml/BillingSummary_view.jsf</welcome-file>
</welcome-file-list>
</web-app>
Portal version is JBoss Portal 2.6.4
JBoss 4.2.2.GA
Obviously I am missing something, can anyone suggest what could be going wrong here?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162930#4162930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162930
More information about the jboss-user
mailing list