title: Spring Boot with Apache Tiles
body: <p>I am attempting to migrate my java application to Spring Boot.  Currently, I am running Spring MVC 3.2 with Apache Tiles.  When I migrated to Spring Boot, my controllers still get called fine, they pass the view to the view Resolver, but when Tiles goes to pull the JSP file in, things fall apart.  The error message I get is:</p>
  
  <pre><code>13:48:46,387 TRACE org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:127 - No handler mapping found for [/jsp/layout/layout.jsp]
  </code></pre>
  
  <p>Has anyone successfully used Apache Tiles with Spring Boot?  Any ideas how to do it?</p>
  
  <p>Thanks in advance for any ideas!</p>
  
  <hr>
  
  <p>More Details:</p>
  
  <pre><code>@Bean
      public UrlBasedViewResolver viewResolver(){
          LOGGER.trace("Entering tiles configurer");
          UrlBasedViewResolver viewResolver = new UrlBasedViewResolver();
          viewResolver.setViewClass(TilesView.class);
          return viewResolver;
      }
      @Bean
      public TilesConfigurer tilesConfigurer(){
          LOGGER.trace("Entering tiles configurer");
          System.out.println("Entering tiles configurer");
          TilesConfigurer tilesConfigurer = new TilesConfigurer();
          String[] defs = {"/WEB-INF/tiles-defs.xml"};
          tilesConfigurer.setDefinitions(defs);
          return tilesConfigurer;
      }
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>        @RequestMapping(value="/")
          public ModelAndView index(ModelAndView mav, HttpServletRequest request, HttpServletResponse resp,RedirectAttributes ra){
              LOGGER.trace("Arrived in Home Controller");
              mav.addObject("profile",appContext.getEnvironment().getActiveProfiles()[0]);
              mav.setViewName("home");
              return mav;
          }
  </code></pre>
  
  <p>tiles-definitions :</p>
  
  <pre><code>        &lt;definition name="layout" template = "/jsp/layout/layout.jsp"&gt;
          &lt;/definition&gt;
          &lt;definition name="home" extends="layout"&gt;
              &lt;put-attribute name="body" value = "/jsp/home.jsp" /&gt;
          &lt;/definition&gt;
  </code></pre>