File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Not able to render view in Spring 2.5 with Tiles2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Not able to render view in Spring 2.5 with Tiles2" Watch "Not able to render view in Spring 2.5 with Tiles2" New topic
Author

Not able to render view in Spring 2.5 with Tiles2

Anoop Nair
Ranch Hand

Joined: Oct 29, 2008
Posts: 70
Hi All,

I am using Spring 2.5 with Tiles2. I am using UrlBasedViewResolver. My controller class extends SimpleFormController. When a request is, I am not able to view the JSP. I get the below Exception.

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.tiles.definition.NoSuchDefinitionException: report
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

org.apache.tiles.definition.NoSuchDefinitionException: report
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:392)
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368)
org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:75)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



I have configured the tile report in my tiles definition file.

Below is the Code:

Spring bean.xml





Am not able to figure out why this is happening. Am I missing something here ???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to render view in Spring 2.5 with Tiles2