On 9/6/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/9/5, Ray Clough <[EMAIL PROTECTED]>: > > > > but I believe that the missing part of your deployment is the Shale-Tiles > > view > > handler > > > > I don't think that Chris uses Shale... Is it really necessary to use Shale > to work with JSF and Tiles? > > Antonio >
With Ray's ViewHandler I get the much shorter but equally un-instructive exception below. But researching all this on the internet has me wondering if the end result will be worth all the trouble. I've used Tiles many times in the past with Struts 1 & 2 and it's proved invaluable, but from what I understand, because of the way JSF processes pages I have the choice of giving up most of the power of Tiles or making my JSF unreadable. I understand that JSF 1.2 should solve many of these problems, but we're not there yet. I'm wondering if anyone has been able to get a simple JSF/Tiles application working (without needing something in between like Struts or Portlets). Thanks. (*Chris*) [09:05:18.447] JSPException while including path '/layout/layout.jsf'. [09:05:18.447] javax.servlet.jsp.JspException: ServletException while including page. [09:05:18.447] at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102) [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88) [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:417) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) [09:05:18.447] at org.apache.tiles.jsp.taglib.InsertDefinitionTag.render(InsertDefinitionTag.java:63) [09:05:18.447] at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171) [09:05:18.447] at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75) [09:05:18.447] at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80) [09:05:18.447] at _jsp._index__jsp._jspService(_index__jsp.java:38) [09:05:18.447] at com.caucho.jsp.JavaPage.service(JavaPage.java:60) [09:05:18.447] at com.caucho.jsp.Page.pageservice(Page.java:570) [09:05:18.447] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179) [09:05:18.447] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209) [09:05:18.447] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) [09:05:18.447] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) [09:05:18.447] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) [09:05:18.447] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) [09:05:18.447] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516) [09:05:18.447] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [09:05:18.447] at java.lang.Thread.run(Thread.java:595) [09:05:18.447] Caused by: javax.servlet.ServletException: Error rendering tile. [09:05:18.447] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:154) [09:05:18.447] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) [09:05:18.447] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) [09:05:18.447] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209) [09:05:18.447] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) [09:05:18.447] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485) [09:05:18.447] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350) [09:05:18.447] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:927) [09:05:18.447] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:864) [09:05:18.447] at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98) [09:05:18.447] ... 20 more [09:05:18.447] Caused by: javax.faces.FacesException: Error rendering tile. [09:05:18.447] at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) [09:05:18.447] at org.apache.shale.tiles.TilesViewHandler.dispatchToTile(TilesViewHandler.java:257) [09:05:18.447] at org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:144) [09:05:18.447] at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) [09:05:18.447] at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132) [09:05:18.447] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) [09:05:18.447] ... 29 more [09:05:18.447] Caused by: javax.servlet.ServletException: Error rendering tile. [09:05:18.447] at org.apache.tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java:85) [09:05:18.447] at javax.servlet.http.HttpServlet.service(HttpServlet.java:115) [09:05:18.447] at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) [09:05:18.447] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) [09:05:18.447] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) [09:05:18.447] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) [09:05:18.447] at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277) [09:05:18.447] at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106) [09:05:18.447] at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419) [09:05:18.447] ... 34 more [09:05:18.447] Caused by: org.apache.tiles.definition.NoSuchDefinitionException: layout/index [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:392) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) [09:05:18.447] at org.apache.tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java:83) [09:05:18.447] ... 42 more [09:05:18.447] Error rendering tile [09:05:18.447] java.io.IOException: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91) [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:417) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) [09:05:18.447] at org.apache.tiles.jsp.taglib.InsertDefinitionTag.render(InsertDefinitionTag.java:63) [09:05:18.447] at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171) [09:05:18.447] at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75) [09:05:18.447] at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80) [09:05:18.447] at _jsp._index__jsp._jspService(_index__jsp.java:38) [09:05:18.447] at com.caucho.jsp.JavaPage.service(JavaPage.java:60) [09:05:18.447] at com.caucho.jsp.Page.pageservice(Page.java:570) [09:05:18.447] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179) [09:05:18.447] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209) [09:05:18.447] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) [09:05:18.447] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) [09:05:18.447] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) [09:05:18.447] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) [09:05:18.447] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516) [09:05:18.447] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [09:05:18.447] at java.lang.Thread.run(Thread.java:595) [09:05:18.447] Error executing tag: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] org.apache.tiles.TilesException: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:425) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) [09:05:18.447] at org.apache.tiles.jsp.taglib.InsertDefinitionTag.render(InsertDefinitionTag.java:63) [09:05:18.447] at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171) [09:05:18.447] at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75) [09:05:18.447] at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80) [09:05:18.447] at _jsp._index__jsp._jspService(_index__jsp.java:38) [09:05:18.447] at com.caucho.jsp.JavaPage.service(JavaPage.java:60) [09:05:18.447] at com.caucho.jsp.Page.pageservice(Page.java:570) [09:05:18.447] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179) [09:05:18.447] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209) [09:05:18.447] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) [09:05:18.447] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) [09:05:18.447] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) [09:05:18.447] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) [09:05:18.447] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516) [09:05:18.447] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [09:05:18.447] at java.lang.Thread.run(Thread.java:595) [09:05:18.447] Caused by: java.io.IOException: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91) [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:417) [09:05:18.447] ... 17 more [09:05:18.447] Error during rendering [09:05:18.447] javax.servlet.jsp.JspException: Error executing tag: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:80) [09:05:18.447] at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80) [09:05:18.447] at _jsp._index__jsp._jspService(_index__jsp.java:38) [09:05:18.447] at com.caucho.jsp.JavaPage.service(JavaPage.java:60) [09:05:18.447] at com.caucho.jsp.Page.pageservice(Page.java:570) [09:05:18.447] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179) [09:05:18.447] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209) [09:05:18.447] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) [09:05:18.447] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) [09:05:18.447] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) [09:05:18.447] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) [09:05:18.447] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516) [09:05:18.447] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [09:05:18.447] at java.lang.Thread.run(Thread.java:595) [09:05:18.447] Caused by: org.apache.tiles.TilesException: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:425) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) [09:05:18.447] at org.apache.tiles.jsp.taglib.InsertDefinitionTag.render(InsertDefinitionTag.java:63) [09:05:18.447] at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171) [09:05:18.447] at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75) [09:05:18.447] ... 13 more [09:05:18.447] Caused by: java.io.IOException: JSPException while including path '/layout/layout.jsf'. ServletException while including page. [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91) [09:05:18.447] at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82) [09:05:18.447] at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:417) [09:05:18.447] ... 17 more
