title: Spring 3 MVC and Apache Tiles 2 Integration Error
body: <p>I have been trying to integrate Spring (3.0.4 and 3.0.5) MVC with Apache Tiles (2.1.2,2.1.4 and 2.2.2) to no avail. In every case i get the following error:</p>
  
  <p>java.lang.NoClassDefFoundError: org/apache/tiles/startup/BasicTilesInitializer</p>
  
  <p>According to the Tiles documentation, BasicTilesInitializer has been deprecated. I figured the latest version of Spring's <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/servlet/view/tiles2/TilesConfigurer.html" rel="noreferrer">TilesConfigurer</a> would reference the correct class, but it doesnt and I still get the same error.</p>
  
  <p>I'm using the following configuration to setup Tiles in my spring mvc app:</p>
  
  <pre><code>&lt;beans:bean 
      id="tilesConfigurer" 
      class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"&gt;
      &lt;beans:property name="definitions"&gt;
          &lt;beans:list&gt;
              &lt;beans:value&gt;/WEB-INF/tiles/tiles.xml&lt;/beans:value&gt;
          &lt;/beans:list&gt;
      &lt;/beans:property&gt;
  &lt;/beans:bean&gt;
  
  &lt;beans:bean 
      class="org.springframework.web.servlet.view.tiles2.TilesViewResolver"&gt;      
      &lt;beans:property 
          name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/&gt;                
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>Ideally, I would like to get Spring 3.0.5 working with Tiles 2.2.2. They are the latest versions as of this post.</p>