0 Replies Latest reply on Aug 1, 2007 5:01 PM by Boubou CAMARA

    Ajax4jsf not working when used in myfaces-example-tiles-1.1.

    Boubou CAMARA Newbie

      hi there,
      I was tryng the integration of myfaces+tiles+ajax. To start I took the examples from myfaces (tiles+myfaces) and I do the following :
      - added ajax4jsf library (ajax4jsf-1.1.jar) in WEB-INF\lib
      - modify web.xml by adding the org.ajax4jsf.Filterf filter as the first filter
      - modify navigation.jsp page as to use the

      <a4j:commandButton value="nested Tiles" action="#{tilesBacking.pressMe}">
       <f:actionListener type="org.apache.myfaces.tiles.example.DemoActionListener"/>
       </a4j:commandButton>


      After that I restarted my tomcat server and I am getting the following exception:

      HTTP STATUS 500
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: ServletException in '/common/navigation.jsp': Resources framework is not initialised, check web.xml for Filter configuration
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      
      
      root cause
      
      javax.faces.FacesException: ServletException in '/common/navigation.jsp': Resources framework is not initialised, check web.xml for Filter configuration
       org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:431)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)
       org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
       org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
       org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      
      
      root cause
      
      org.apache.jasper.JasperException: ServletException in '/common/navigation.jsp': Resources framework is not initialised, check web.xml for Filter configuration
       org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)
       org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
       org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
       org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      
      
      root cause
      
      javax.servlet.ServletException: ServletException in '/common/navigation.jsp': Resources framework is not initialised, check web.xml for Filter configuration
       org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
       org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
       org.apache.jsp.template.template_jsp._jspService(template_jsp.java:76)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)
       org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
       org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
       org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      
      
      root cause
      
      javax.servlet.jsp.JspException: ServletException in '/common/navigation.jsp': Resources framework is not initialised, check web.xml for Filter configuration
       org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
       org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
       org.apache.jsp.template.template_jsp._jspx_meth_tiles_005finsert_005f0(template_jsp.java:177)
       org.apache.jsp.template.template_jsp._jspx_meth_f_005fsubview_005f0(template_jsp.java:153)
       org.apache.jsp.template.template_jsp._jspx_meth_f_005fview_005f0(template_jsp.java:103)
       org.apache.jsp.template.template_jsp._jspService(template_jsp.java:67)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)
       org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
       org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
       org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)


      ANY idea? Thanks