title: Tiles 3 and Spring 3 integration throwing exception
body: <p>I am trying to integrate Spring 3 and Tiles 3, I am viewing the page fine and application is working fine but its giving me following error.
  <code>javax.servlet.ServletException: File &amp;quot;/WEB-INF/template/WEB-INF/template/layout.jsp&amp;quot; not found</code></p>
  
  <p>Here are my configuration files.</p>
  
  <pre><code>&lt;bean class="org.springframework.web.servlet.view.tiles3.TilesViewResolver"&gt;
      &lt;property name="viewClass"
          value="org.springframework.web.servlet.view.tiles3.TilesView"&gt;&lt;/property&gt;
      &lt;property name="order" value="0"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"
      id="tilesConfigurer"&gt;
      &lt;property name="definitions" value="/WEB-INF/tiles.xml"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="messageSource"
      class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
      &lt;property name="basename" value="classpath:I18N/messages" /&gt;
      &lt;property name="defaultEncoding" value="UTF-8" /&gt;
  &lt;/bean&gt;
  &lt;bean id="localeResolver"
      class="org.springframework.web.servlet.i18n.CookieLocaleResolver"&gt;
      &lt;property name="defaultLocale" value="en" /&gt;
  &lt;/bean&gt;
  &lt;mvc:interceptors&gt;
      &lt;mvc:interceptor&gt;
          &lt;mvc:mapping path="/" /&gt;
          &lt;bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt;
              &lt;property name="paramName" value="lang"&gt;&lt;/property&gt;
          &lt;/bean&gt;
      &lt;/mvc:interceptor&gt;
  &lt;/mvc:interceptors&gt;
  </code></pre>
  
  <p>this is my tiles.xml</p>
  
  <pre><code>&lt;tiles-definitions&gt;
  &lt;definition name="base.definition"
      template='WEB-INF/template/layout.jsp'&gt;
      &lt;put-attribute name="title" value="" /&gt;
      &lt;put-attribute name="header" value="/WEB-INF/tile/header.jsp" /&gt;
      &lt;put-attribute name="body" value="" /&gt;
      &lt;put-attribute name="footer" value="/WEB-INF/tile/footer.jsp" /&gt;
  &lt;/definition&gt;
  
  &lt;definition name="login" extends="base.definition"&gt;
      &lt;put-attribute name="title" value="login" /&gt;
      &lt;put-attribute name="body" value="/WEB-INF/tile/login.jsp" /&gt;
  &lt;/definition&gt;
  </code></pre>
  
  <p></p>
  
  <p>here is my layout.jsp</p>
  
  <pre><code>&lt;body bgcolor=""&gt;
  &lt;table border="1" cellpadding="2" cellspacing="2" align="center"&gt;
      &lt;tr&gt;
          &lt;td height="20%" colspan="1"&gt;&lt;tiles:insertAttribute
                  name="header" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td width="350"&gt;&lt;tiles:insertAttribute name="body" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td height="10%" colspan="1"&gt;&lt;tiles:insertAttribute
                  name="footer" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>What am I doing wrong here?
  I spent hours on it, still cant figure it out.</p>