title: javax.servlet.ServletException - Could not resolve view with name
body: <p>I'm developing controllers at Spring.
  This is my controller code : </p>
  
  <pre><code>@Controller
  @RequestMapping("/consumer")
  public class ConsumerController extends AbstractController {
      public ConsumerController() {
          super();
      }
  
      //Services
      @Autowired
      ConsumerService consumerService;
      //Constructors
  
  
      // Lista de consumidores ---------------------------------------------------------------        
      @RequestMapping(value = "/list", method = RequestMethod.GET)
      public ModelAndView listConsumers() {
          ModelAndView result = new ModelAndView("customer/list");
          Collection&lt;Consumer&gt; consumers = consumerService.getAllConsumer();
          result.addObject("customers",consumers);
          result.addObject("customerType", "Consumer");
          result.addObject("requestURI","consumer/list.do");
          return result;
          }
  }
  </code></pre>
  
  <p>Now, this is my tiles.xml</p>
  
  <pre><code>&lt;tiles-definitions&gt;
  
      &lt;definition name="consumer/list" extends="master.page"&gt; 
          &lt;put-attribute name="title" value="List of consumers" /&gt;
          &lt;put-attribute name="body" value="/views/customer/list.jsp" /&gt;
      &lt;/definition&gt;
  
      &lt;definition name="supplier/list" extends="master.page"&gt; 
          &lt;put-attribute name="title" value="List of suppliers" /&gt;
          &lt;put-attribute name="body" value="/views/customer/list.jsp" /&gt;
      &lt;/definition&gt;
  
      &lt;definition name="register" extends="master.page"&gt;  
          &lt;put-attribute name="title" value="Register" /&gt;
          &lt;put-attribute name="body" value="/views/customer/register.jsp" /&gt;
      &lt;/definition&gt;   
  
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>And this is my view which I want to show in my application :</p>
  
  <pre><code>&lt;%@page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  
  &lt;%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  &lt;%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%&gt;
  &lt;%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%&gt;
  &lt;%@taglib prefix="spring" uri="http://www.springframework.org/tags"%&gt;
  &lt;%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
  &lt;%@taglib prefix="security" uri="http://www.springframework.org/security/tags"%&gt;
  &lt;%@taglib prefix="display" uri="http://displaytag.sf.net"%&gt;
  
  &lt;display:table name="customers" id="row" pagesize="3" requestURI="${requestURI}" class="displaytag"&gt;
  
      &lt;spring:message code="customer.name" var="cname" /&gt;
      &lt;display:column title="${cname)" property="name" sortable="true" /&gt;
  
      &lt;spring:message code="customer.surname" var="csurname" /&gt;
      &lt;display:column title="${csurname}" property="surname" sortable="true"/&gt;
  
      &lt;spring:message code="customer.email" var="cemail" /&gt;
      &lt;display:column title="${cemail}" property="email"/&gt;
  
      &lt;spring:message code="customer.ticker" var="cticker" /&gt;
      &lt;display:column title="${cticker}" property="ticker"/&gt;
  
      &lt;display:column&gt;
              &lt;jstl:if test="${customerType == 'Supplier'}"&gt;
                      &lt;a href="item/list.do?supplierId=${row.id}"&gt;
                          &lt;spring:message code="item.show.item" /&gt;
                      &lt;/a&gt;
              &lt;/jstl:if&gt;  
      &lt;/display:column&gt;
  &lt;/display:table&gt;
  </code></pre>
  
  <p>When I try to access '/consumer/list.do/' or 'supplier/list.do', Eclipse shows me this exception :</p>
  
  <pre><code>SEVERE: Servlet.service() for servlet [Acme-BrokerServlet] in context with path [/Acme-Broker] threw exception [Could not resolve view with name 'customer/list' in servlet with name 'Acme-BrokerServlet'] with root cause
  javax.servlet.ServletException: Could not resolve view with name 'customer/list' in servlet with name 'Acme-BrokerServlet'
      at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)
      at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1012)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)
  </code></pre>
  
  <p>I tried a lot of thinks, changing urls, reviewing my code...
  I couldn't find out what's happening, whatever, I'll keep trying to solve this issue. 
  Thanks for your attention.</p>