1 Reply Latest reply on Jan 2, 2008 9:39 AM by Holger Wolf

    Ajax4jsf with IBM Websphere Portals and RAD 7

    Porsha Rayz Newbie

      Hi All,

      I have been trying this almost forbidden combination for a couple of days now.
      I am using RAD 7.0 as my IDE.Faces Portlet for development and Websphere Portal Server 6.0 for Testing.
      It shows in servers supported in the developers guide that WPS 5.1- 6 are supported.Hence i went ahead to try this.

      These are steps i followed.

      1) I copied the ajax4jsf.1.1.1.jar and oscache.jar in my WEB-INF/lib.
      2) Made an entry into web.xml as:

      <display-name>Ajax4jsf Filter</display-name>
      <filter-name>ajax4jsf</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>

      <filter-mapping>
      <filter-name>ajax4jsf</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      3) Commented IBM's Ajax implementation to avoid conflicts:
      <!--

      <faces-context-factory>
      com.ibm.faces.context.AjaxFacesContextFactory</faces-context-factory>
      <render-kit-factory>
      com.ibm.faces.renderkit.AjaxRenderKitFactory</render-kit-factory>

      -->

      4) Made the Application class loader as PARENT_LAST.(RAD 7 problem).
      I could use IBM's impl but it fails to work in WSRP (Webservices enabled portlets).

      I am just trying to deploy the echo project example not any complicated module.But i get this exception.
      I would be grateful if any body in resolving this issue.Otherwise i have to scrap my project.:-(

      This is a part of my stack trace that i receive:

      [8/21/07 12:35:28:980 IST] 00000076 PortletRender E com.ibm.wps.engine.tags.PortletRenderTag doStartTag EJPEJ0066E: The portlet could not be rendered.
      javax.portlet.PortletException: java.lang.NullPointerException
      at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:251)
      at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
      at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:97)
      at com.ibm.wps.pe.pc.std.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:110)
      at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:587)
      at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:247)
      at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:115)
      at com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:161)
      at com.ibm._jsp._Control._jspx_meth_portal$1skin_portletRender_0(_Control.java:852)
      at com.ibm._jsp._Control._jspx_meth_portal$1logic_if_3(_Control.java:884)
      at com.ibm._jsp._Control._jspService(_Control.java:498)
      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
      at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
      at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
      at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:252)
      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:613)
      at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
      at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
      at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
      at com.ibm.wps.engine.templates.skins.Default.render(Default.java:115)
      at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
      at com.ibm.wps.composition.elements.Component.render(Component.java:845)
      at com.ibm.wps.composition.elements.Control.render(Control.java:124)
      at com.ibm.wps.composition.Composition.render(Composition.java:2568)
      at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:70)
      at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:218)
      at com.ibm.wps.engine.tags.ComponentRenderTag.doStartTag(ComponentRenderTag.java:89)
      at com.ibm._jsp._UnlayeredContainer_2D_V._jspx_meth_portal$1skin_layoutNodeRender_0(_UnlayeredContainer_2D_V.java:246)
      at com.ibm._jsp._UnlayeredContainer_2D_V._jspService(_UnlayeredContainer_2D_V.java:150)
      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
      at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
      at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
      at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:252)
      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:613)
      at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
      at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
      at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
      at com.ibm.wps.engine.templates.skins.Default.render(Default.java:115)
      at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
      at com.ibm.wps.composition.elements.Component.render(Component.java:845)
      at com.ibm.wps.composition.Composition.render(Composition.java:2568)
      at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:70)
      at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:218)
      at com.ibm.wps.engine.tags2.PageRenderTag.doStartTag(PageRenderTag.java:396)
      at com.ibm._jsp._Home._jspService(_Home.java:82)
      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
      at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
      at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
      at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:252)
      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:613)
      at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
      at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
      at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:54)
      at com.ibm.wps.engine.templates.screens.Default.render(Default.java:91)
      at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:61)
      at com.ibm.wps.engine.tags2.ScreenRenderTag.doStartTag(ScreenRenderTag.java:89)
      at com.ibm._jsp._Default._jspx_meth_portal$1core_screenRender_0(_Default.java:4419)
      at com.ibm._jsp._Default._jspService(_Default.java:2267)
      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)