0 Replies Latest reply on Aug 2, 2007 11:05 AM by Boubou CAMARA

    Ajax4jsf + myfaces + tiles  integration issue

    Boubou CAMARA Newbie

      Hi there,
      I am facing an integration problem with : ajax4jsf+myfaces+tiles
      I got the following setup and it is not working:

      myfaces(1.1.6-SNAPSHOT) + tomahawk (1.1.5-SNAPSHOT) + ajax4jsf (1.1) + struts(struts-1.2.8)

      I got it running on a tomcat 5.5.23 - this does not work when I'm using ajax4jsf and tiles) .
      When I remove the references to ajax4jsf everything work fine.
      Is this a known issue?

      My config files contains the following infos :

      faces-config.xml contains the view-handler :
      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>

      and in the web.xml the first filter has to be:

      <!-- ************************ AJAX4JSF Filter **************************** -->
      <!-- If you have other filters declared in the web.xml, be sure that Ajax4jsf Filter is declared before the others. -->

      <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>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      Below is the stack trace I am getting :

      Code:
      HTTP STATUS 500
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this reque
      st.
      
      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.j
      ava:431)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImp
      l.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerI
      mpl.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.j
      ava:425)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImp
      l.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerI
      mpl.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.j
      ava:425)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImp
      l.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerI
      mpl.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.j
      ava:425)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImp
      l.java:236)
       org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerI
      mpl.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