title: Spring Boot "No message available" error(status = 404),
body: <p>I'm using Spring Boot with embeded Tomcat.
  When it starts it logs into console:</p>
  
  <blockquote>
    <p>s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/home]}" onto public java.lang.String com.vlad.pet.contactlist.webapp.controller.SampleController.helloWorld(org.springframework.ui.Model)</p>
  </blockquote>
  
  <p>So I guess the URL is mapped to the controller.
  But <a href="http://localhost:8090/home" rel="nofollow">http://localhost:8090/home</a> gives me an error 404.</p>
  
  <blockquote>
    <p>There was an unexpected error (type=Not Found, status=404).
    No message available</p>
  </blockquote>
  
  <p>Application.java</p>
  
  <pre><code>@SpringBootApplication
  public class Application extends SpringBootServletInitializer {
      public static void main(final String[] args) {
          SpringApplication.run(Application.class, args);
      }
      //overrides the configure() method to point to itself, so Spring can find the main configuration.
      @Override
      protected final SpringApplicationBuilder configure(final SpringApplicationBuilder application) {
          return application.sources(Application.class);
      }
      @Bean
      public ViewResolver getViewResolver() {
          final TilesViewResolver resolver = new TilesViewResolver();
          resolver.setViewClass(TilesView.class);
          return resolver;
      }
      @Bean
      public TilesConfigurer getTilesConfigurer() {
          final TilesConfigurer configurer = new TilesConfigurer();
          configurer.setDefinitions("WEB-INF/tiles/tiles.xml");
          configurer.setCheckRefresh(true);
          return configurer;
      }
  }
  </code></pre>
  
  <p>SampleController.java</p>
  
  <pre><code>@Controller
  public class SampleController {
      @RequestMapping (value = "/home")
      public String helloWorld(Model model) {
          model.addAttribute("pageTitle", "home");
          return "base";
      }
  }
  </code></pre>
  
  <p>tiles.xml</p>
  
  <pre><code>&lt;tiles-definitions&gt;
      &lt;definition name="base" template="/WEB-INF/tiles/basic/basic-template.jsp"&gt;
          &lt;put-attribute name="head" value="/WEB-INF/tiles/basic/head.jsp" /&gt;
      &lt;/definition&gt;
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/yYber.png" rel="nofollow">My project structure</a></p>