10 Replies Latest reply: Sep 14, 2010 11:22 AM by Yashavanth Kuntavalli RSS

Resources framework is not initialised error when moving fro

Luis Enriquez Newbie

Hi,

I've found an issue with Portlet Bridge B6. I have a simple portlet application (in fact is the rich faces greeting sample portletized). The portlet works ok with Portlet Bridge B5, but not with B6. The portlet config files (web.xml, portlet.xml, faces-config.xml) remain untouched, I just replace the portlet bridge jar files.

I'm using JSF 1.2_10 and RF3.3.0.GA.

The error trace I'm getting with the B6 version is the following:

[20/02/09 14:20:28:515 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetinPortlet/WebContent/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
[20/02/09 14:20:28:531 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
[20/02/09 14:20:28:546 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
[20/02/09 14:20:28:562 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/a4j.taglib.xml
[20/02/09 14:20:28:562 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/ajax4jsf.taglib.xml
[20/02/09 14:20:28:578 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/jsp.taglib.xml
[20/02/09 14:20:28:609 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/rich.taglib.xml
[20/02/09 14:20:28:609 CET] 000000bc compiler I Added Library from: wsjar:file:/C:/mywork/cleanWS/GreetingPortlet/WebContent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/richfaces.taglib.xml
[20/02/09 14:20:29:015 CET] 000000bc viewhandler E Error Rendering View[/index.jspx]
 javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
 at org.ajax4jsf.resource.ResourceBuilderImpl.getWebXml(ResourceBuilderImpl.java:107)
 at org.ajax4jsf.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:314)
 at org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:218)
 at org.ajax4jsf.resource.BaseResourceRenderer.encodeBegin(BaseResourceRenderer.java:64)
 at org.ajax4jsf.resource.OneTimeRenderer.encodeBegin(OneTimeRenderer.java:48)
 at org.ajax4jsf.resource.BaseResourceRenderer.encode(BaseResourceRenderer.java:47)
 at org.ajax4jsf.resource.InternetResourceBase.encode(InternetResourceBase.java:313)
 at org.ajax4jsf.renderkit.HeaderResourcesRendererBase.encodeResourcesArray(HeaderResourcesRendererBase.java:144)
 at org.ajax4jsf.renderkit.HeaderResourcesRendererBase.encodeToHead(HeaderResourcesRendererBase.java:156)
 at org.ajax4jsf.context.ViewResources.processComponent(ViewResources.java:325)
 at org.ajax4jsf.context.ViewResources.traverse(ViewResources.java:381)
 at org.ajax4jsf.context.ViewResources.traverse(ViewResources.java:385)
 at org.ajax4jsf.context.ViewResources.traverse(ViewResources.java:385)
 at org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:514)
 at org.jboss.portletbridge.renderkit.portlet.PortletAjaxViewRootRenderer.doEncodeEnd(PortletAjaxViewRootRenderer.java:70)
 at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
 at org.ajax4jsf.component.AjaxViewRoot.encodeEnd(AjaxViewRoot.java:523)
 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
 at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:840)
 at org.jboss.portletbridge.AjaxPortletBridge.renderResponse(AjaxPortletBridge.java:665)
 at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:501)
 at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:351)
 at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:312)
 at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:293)
 at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)


I'm not sure if this has some relation with the error, but with the bridge B5 I can see the following traces in the output:
.. bridge I Start portletbridge initialization for GreetingPortlet
.. bridge I Create instance of a JSF lifecycle DEFAULT
.. bridge I Done portletbridge initialisation for GreetingPortlet
.. bridge I Start bridge render request processing for portlet GreetingPortlet

These no longer appear with the B6 version.

I have tested with the javax.portlet.faces.renderPolicy param, but it no solves the problem with any of its values.

These are my config files:

web.xml

 <context-param>
 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
 <param-value>server</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>javax.faces.DEFAULT_SUFFIX</param-name>
 <param-value>.jspx</param-value>
 </context-param>

 <context-param>
 <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
 <param-value>rfRes</param-value>
 </context-param>



 <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>org.richfaces.LoadStyleStrategy</param-name>
 <param-value>ALL</param-value>
 </context-param>
 <context-param>
 <param-name>org.richfaces.LoadScriptStrategy</param-name>
 <param-value>ALL</param-value>
 </context-param>


 <!-- Plugging the "Blue Sky" skin into the project -->
 <context-param>
 <param-name>org.richfaces.SKIN</param-name>
 <param-value>blueSky</param-value>
 </context-param>
 <!-- Making the RichFaces skin spread to standard HTML controls -->
 <context-param>
 <param-name>org.richfaces.CONTROL_SKINNING</param-name>
 <param-value>enable</param-value>
 </context-param>



 <!-- Special Debug Output for Development -->
 <context-param>
 <param-name>facelets.DEVELOPMENT</param-name>
 <param-value>true</param-value>
 </context-param>

 <!-- Optional JSF-RI Parameters to Help Debug -->
 <context-param>
 <param-name>com.sun.faces.validateXml</param-name>
 <param-value>true</param-value>
 </context-param>

 <filter>
 <display-name>RichFaces Filter</display-name>
 <filter-name>richfaces</filter-name>
 <filter-class>org.ajax4jsf.Filter</filter-class>
 </filter>
 <filter-mapping>
 <filter-name>richfaces</filter-name>
 <servlet-name>Faces Servlet</servlet-name>
 <dispatcher>REQUEST</dispatcher>
 <dispatcher>FORWARD</dispatcher>
 <dispatcher>INCLUDE</dispatcher>
 </filter-mapping>

 <listener>
 <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
 </listener>

 <servlet>
 <servlet-name>Faces Servlet</servlet-name>
 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
 <load-on-startup>1</load-on-startup>
 </servlet>
 <servlet-mapping>
 <servlet-name>Faces Servlet</servlet-name>
 <url-pattern>/faces/*</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
 <servlet-name>Faces Servlet</servlet-name>
 <url-pattern>*.faces</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
 <servlet-name>Faces Servlet</servlet-name>
 <url-pattern>*.jsf</url-pattern>
 </servlet-mapping>


faces-config.xml
<application>
 <view-handler>org.jboss.portletbridge.application.FaceletPortletViewHandler</view-handler>
 <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>
</application>


 <managed-bean>
 <managed-bean-name>user</managed-bean-name>
 <managed-bean-class>demo.User</managed-bean-class>
 <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>



Some ideas about the problem??

Thanks and regards

  • 1. Re: Resources framework is not initialised error when moving
    Luis Enriquez Newbie

    Investigating this issue I've found the root of the problem:

    It seems that RichFaces filter is not beeing invoked. As long as the Portlet 1.0 spec does not define portlet filters, each portlet containter implements its own behaviour. The one I'm using (WebSphere Portal) does not invoke the servlet filters declared on the web.xml.

    I can hack this error by forcing filter initialization. I've created and registered a ServletContextListener:



    public void contextInitialized(ServletContextEvent event) {
     ServletContext sc = event.getServletContext();
     try {
     new WebXml().init(sc, DEFAULT_RICHFACES_FILTER_NAME);
     } catch (ServletException e) {
     e.printStackTrace();
     }
    }
    


    The thing is why the filter must be 'manually' initialized with the Beta6 and with Beta5 works with no problem. What has been changed from one version to another to break this?
    Also I would like to know if this workaround is enough or maybe can have 'collateral effects'.



  • 2. Re: Resources framework is not initialised error when moving
    Wesley Hales Master

    For starters, your faces-config.xml is wrong:
    http://www.jboss.org/files/portletbridge/docs/1.0.0.B6/en/html_single/index.html#d0e242

    There were some changes from B5 to B6 concerning how richfaces is loaded, but this has not been tested on websphere.

    Make sure ALL your configurations are correct, and let us know what happens.

  • 3. Re: Resources framework is not initialised error when moving
    Luis Enriquez Newbie

    Thanks Wesley.
    I have checked the config and I think it is already correct.
    I've updated my faces-config.xml and included the right view-handler (org.jboss.portletbridge.application.PortletViewHandler), but I still having the same issue: the filter is not being triggered so ResourceBuilderImpl.getWebXml() throws an exception. B5 impl must initialize the framework in some way without using the filter. This is no longer the behaviour with B6.

    Just another question: we are declaring 2 different viewhandlers: one in the faces-config.xml (PortletViewHandler) and other in web.xml (FaceletPortletViewHandler). Which one is being used? Does one on them delegates to the other? In wich order?

    Thanks

  • 4. Re: Resources framework is not initialised error when moving
    Wesley Hales Master

    The PortletViewHandler is the one provided by the bridge that does the work (and loading). It uses the decorator design pattern and overrides most of the methods provided by the JSF impl. It returns a properly namespaced UIViewRoot when running in a portlet environment.

    That's crazy that WebSphere does not treat your Richfaces application like a normal web app. That is one of the best things about the portlet bridge... allowing you to run your app in servlet and portlet worlds in parallel.
    LEt us know if you find a solution.

  • 5. Re: Resources framework is not initialised error when moving
    Luis Enriquez Newbie

    It just the first time the page is rendered that the Filter is not triggered. Subsequent requests are being caught by the filter. It probably has to be with the way WPS delegates the rendering of the portlets (maybe the first time it simply forwards to the portlet view directly, so it it does not pass through the filter).
    The workaround I've found is, as I told you, is to create a ServletContextListener to manually initialize the A4JSF resources framework (new WebXml().init(sc, DEFAULT_RICHFACES_FILTER_NAME);). With this cheat it then works perfectly: first view is rendered and subsequent request are processed by the filter.
    I would like to have it working without cheating, so maybe you could include some fix to this issue (maybe lazy loading of the WebXml class and issuing a warning).

    Thanks a lot for your time and interest.

  • 7. Re: Resources framework is not initialised error when moving
    Herve Ferreira Newbie

    Hi,

    I also tried to do a RichFaces portlet using WebSphere Portal. Some time ago I quit, but now I saw this post and I will try again.

    Luxor, can you please send me your example? My email is hferreira25@gmail.com.

    I'm using the Portlet Bridge version CR2 but I 'm having exactly the same problem. So the problem was really fixed ?

    Thanks in Advance

  • 8. Re: Resources framework is not initialised error when moving
    Herve Ferreira Newbie

    Hi,

    I've tried to add the listener, but on my case I've got the following exception

    [17-07-2009 9:53:45:062 BST] 00000032 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet MyP7Proj in application PA_MyP7Proj. Exception created : javax.servlet.ServletException: javax.portlet.PortletException: java.lang.ClassCastException: com.ibm.ws.portletcontainer.core.impl.PortletContextImpl incompatible with javax.servlet.ServletContext
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:369)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82)
    at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:130)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
    at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doDispatch(RRDServerPortletServletCollaborator.java:60)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
    at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doDispatch(CacheCollaborator.java:74)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doDispatch(PortletServletCollaboratorImpl.java:121)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.dispatch(PortletServlet.java:208)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.service(PortletServlet.java:165)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    at com.ibm.ws.portletcontainer.webextension.PortletExtensionProcessor.handleRequest(PortletExtensionProcessor.java:96)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:214)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:78)
    at com.ibm.ws.portletcontainer.cache.PortletInvokerCacheCollaborator.doRender(PortletInvokerCacheCollaborator.java:58)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:67)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invoke(PortletInvokerPerformanceCollaborator.java:313)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:101)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invokePMI(PortletInvokerPerformanceCollaborator.java:163)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:91)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doRender(PortletInvokerPerformanceCollaborator.java:74)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:67)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:97)
    at com.ibm.ws.portletcontainer.PortletContainerImpl.doRender(PortletContainerImpl.java:119)
    at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:80)
    at com.ibm.ws.portletcontainer.ext.ExtCollaborator.doRender(ExtCollaborator.java:74)
    at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
    at com.ibm.ws.portletcontainer.cache.CacheInvokerCollaborator.doRender(CacheInvokerCollaborator.java:66)
    at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
    at com.ibm.ws.portletcontainer.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:89)
    at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl$2.run(PortletInvokerImpl.java:100)
    at java.security.AccessController.doPrivileged(AccessController.java:251)
    at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl.invokeRender(PortletInvokerImpl.java:96)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl$1.invoke(PortletInvokerImpl.java:93)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:176)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invokeRender(PortletInvokerImpl.java:91)
    at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:116)
    at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:641)
    at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:264)
    at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:132)
    at com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:179)
    at com.ibm._jsp._Control._jspx_meth_portal$1skin_portletRender_0(_Control.java:1195)
    at com.ibm._jsp._Control._jspService(_Control.java:684)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
    at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
    at com.ibm.wps.engine.templates.skins.Default.render(Default.java:154)
    at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
    at com.ibm.wps.composition.elements.Component.render(Component.java:634)
    at com.ibm.wps.composition.elements.Control.render(Control.java:155)
    at com.ibm.wps.composition.Composition.render(Composition.java:2962)
    at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:90)
    at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:275)
    at com.ibm.wps.engine.tags.ComponentRenderTag.doStartTag(ComponentRenderTag.java:75)
    at com.ibm._jsp._UnlayeredContainer_2D_V._jspx_meth_portal$1skin_layoutNodeRender_0(_UnlayeredContainer_2D_V.java:315)
    at com.ibm._jsp._UnlayeredContainer_2D_V._jspService(_UnlayeredContainer_2D_V.java:191)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
    at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
    at com.ibm.wps.engine.templates.skins.Default.render(Default.java:154)
    at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
    at com.ibm.wps.composition.elements.Component.render(Component.java:634)
    at com.ibm.wps.composition.Composition.render(Composition.java:2962)
    at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:90)
    at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:275)
    at com.ibm.wps.engine.tags.ComponentRenderTag.doStartTag(ComponentRenderTag.java:75)
    at com.ibm._jsp._UnlayeredContainer_2D_H._jspx_meth_portal$1skin_layoutNodeRender_0(_UnlayeredContainer_2D_H.java:329)
    at com.ibm._jsp._UnlayeredContainer_2D_H._jspService(_UnlayeredContainer_2D_H.java:200)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
    at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
    at com.ibm.wps.engine.templates.skins.Default.render(Default.java:154)
    at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
    at com.ibm.wps.composition.elements.Component.render(Component.java:634)
    at com.ibm.wps.composition.Composition.render(Composition.java:2962)
    at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:90)
    at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:275)
    at com.ibm.wps.engine.tags2.PageRenderTag.doStartTag(PageRenderTag.java:534)
    at com.ibm._jsp._Home._jspService(_Home.java:104)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
    at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:58)
    at com.ibm.wps.engine.templates.screens.Default.render(Default.java:96)
    at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:59)
    at com.ibm.wps.engine.tags2.ScreenRenderTag.doStartTag(ScreenRenderTag.java:189)
    at com.ibm._jsp._Default._jspx_meth_portal$1core_screenRender_0(_Default.java:11557)
    at com.ibm._jsp._Default._jspx_meth_c_if_67(_Default.java:11585)
    at com.ibm._jsp._Default._jspService(_Default.java:5069)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
    at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
    at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
    at com.ibm.wps.engine.templates.themes.Default.doDispatch(Default.java:283)
    at com.ibm.wps.engine.templates.themes.Default.render(Default.java:236)
    at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:65)
    at com.ibm.wps.engine.phases.WPRenderPhase.processRendering(WPRenderPhase.java:394)
    at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:189)
    at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
    at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:97)
    at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:806)
    at com.ibm.wps.engine.Servlet.doGet(Servlet.java:608)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
    at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:1188)
    at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:648)
    at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:82)
    at com.ibm.wps.engine.Servlet.service(Servlet.java:1179)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1396)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
    at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(ExtendedLocaleFilter.java:113)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.wps.resolver.friendly.servlet.FriendlySelectionFilter.doFilter(FriendlySelectionFilter.java:191)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:365)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.wps.engine.VirtualPortalFilter.doFilter(VirtualPortalFilter.java:88)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:89)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:788)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:444)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3622)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:927)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1566)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:175)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
    Caused by: javax.portlet.PortletException: java.lang.ClassCastException: com.ibm.ws.portletcontainer.core.impl.PortletContextImpl incompatible with javax.servlet.ServletContext
    ... 221 more
    Caused by: java.lang.ClassCastException: com.ibm.ws.portletcontainer.core.impl.PortletContextImpl incompatible with javax.servlet.ServletContext
    at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFacesContext(MultipartFacesContextFactoryImpl.java:63)
    at org.jboss.portletbridge.AjaxPortletBridge.getFacesContext(AjaxPortletBridge.java:836)
    at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:484)
    at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:351)
    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:312)
    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:293)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128)
    at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:183)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:573)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:114)
    at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doRender(PortletServletCollaborator.java:69)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
    at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.java:123)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
    at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.java:92)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doRender(PortletServletCollaboratorImpl.java:156)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:273)
    ... 220 more

  • 9. Re: Resources framework is not initialised error when moving
    Caio Candido Newbie

    I also tried to do a RichFaces portlet using WebSphere Portal. I'm using the Portlet Bridge 2 and WebSphere Portal 6.1.5 - WAS 7. Generates the following exception: Error processing execute lifecycle java.lang.UnsupportedOperationException

    Thanks,
    caioccandido@gmail.com

  • 10. Re: Resources framework is not initialised error when moving
    Yashavanth Kuntavalli Newbie

    Hi Caio,

    Were you able to make it work?

    I am struck up with the error

     

    Caused by: java.lang.NullPointerException

    at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:267)

    at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:251)

    at org.richfaces.renderkit.NodeRendererBase.getToggleScript(NodeRendererBase.java:99)

    at org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:185)

    at org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:86)

    at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)

    at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeBegin(DefaultAjaxRenderer.java:64)

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

    at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)

    at org.richfaces.renderkit.TreeRendererBase$DataVisitorWithLastElement.process(TreeRendererBase.java:255)

    at org.richfaces.model.AbstractTreeDataModel.processElement(AbstractTreeDataModel.java:111)

    at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:294)

    at org.richfaces.model.StackingTreeModel$Visitor1.process(StackingTreeModel.java:416)

    at org.richfaces.model.StackingTreeModel$ShiftingDataVisitor.end(StackingTreeModel.java:461)

    at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:348)

    at org.richfaces.model.StackingTreeModel.walk(StackingTreeModel.java:387)

    at org.richfaces.component.UITree.walk(UITree.java:422)

    at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:683)

    at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:629)

    at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.java:73)

    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)

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

    at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)

    at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.java:73)

    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)

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

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

    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:289)

    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:220)

    at com.ibm.faces.portlet.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:79)

    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:179)

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

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

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

    at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:372)

    ... 245 more

     

    [9/14/10 2:03:47:328 CDT] 0000013a BaseXMLFilter E org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter Exception in the filter chain

                                     javax.servlet.ServletException: javax.portlet.PortletException

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

     

    My Web.xml looks like this

     

    <filter>

    <display-name>RichFaces Filter</display-name>

    <filter-name>richfaces</filter-name>

    <filter-class>org.ajax4jsf.Filter</filter-class>

    </filter>

    <filter-mapping>

    <filter-name>richfaces</filter-name>

    <url-pattern>/*</url-pattern>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>INCLUDE</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>richfaces</filter-name>

    <url-pattern>/.ibmjsfres/*</url-pattern>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>INCLUDE</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>richfaces</filter-name>

    <url-pattern>/faces/*</url-pattern>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>INCLUDE</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>richfaces</filter-name>

    <url-pattern>/faces/rfRes/*</url-pattern>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>INCLUDE</dispatcher>

    <dispatcher>ERROR</dispatcher>

    </filter-mapping>

    <!-- End of Rich Faces related entries -->

     

    I am using Richfaces jars of version 3.3.3 Final and WPS is running on WAS 7.0.0.9.

     

    Any help will be greatly appreciated

    Caused by: java.lang.NullPointerException
    at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:267)
    at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:251)
    at org.richfaces.renderkit.NodeRendererBase.getToggleScript(NodeRendererBase.java:99)
    at org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:185)
    at org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:86)
    at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
    at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeBegin(DefaultAjaxRenderer.java:64)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
    at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
    at org.richfaces.renderkit.TreeRendererBase$DataVisitorWithLastElement.process(TreeRendererBase.java:255)
    at org.richfaces.model.AbstractTreeDataModel.processElement(AbstractTreeDataModel.java:111)
    at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:294)
    at org.richfaces.model.StackingTreeModel$Visitor1.process(StackingTreeModel.java:416)
    at org.richfaces.model.StackingTreeModel$ShiftingDataVisitor.end(StackingTreeModel.java:461)
    at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:348)
    at org.richfaces.model.StackingTreeModel.walk(StackingTreeModel.java:387)
    at org.richfaces.component.UITree.walk(UITree.java:422)
    at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:683)
    at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:629)
    at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.java:73)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
    at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
    at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.java:73)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:289)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:220)
    at com.ibm.faces.portlet.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:79)
    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:179)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:372)
    ... 245 more
    [9/14/10 2:03:47:328 CDT] 0000013a BaseXMLFilter E org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter Exception in the filter chain
                                     javax.servlet.ServletException: javax.portlet.PortletException
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:361)