title: tiles with spring : getting error - java.lang.ClassNotFoundException: org.apache.tiles.TilesApplicationContext
body: <p>I am new to spring and trying to use tiles with Spring. but getting above error. i am using maven in my project. i tried changing versions also, but no use. following are contents of project:</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>  &lt;!-- Apache Tiles --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-core&lt;/artifactId&gt;
          &lt;version&gt;3.0.5&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-jsp&lt;/artifactId&gt;
          &lt;version&gt;3.0.5&lt;/version&gt;
      &lt;/dependency&gt;
  
       &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-api&lt;/artifactId&gt;
          &lt;version&gt;3.0.5&lt;/version&gt;
      &lt;/dependency&gt;
       &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-servlet&lt;/artifactId&gt;
          &lt;version&gt;3.0.5&lt;/version&gt;
      &lt;/dependency&gt;
       &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-template&lt;/artifactId&gt;
          &lt;version&gt;3.0.5&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>servlet-context.xml</strong></p>
  
  <pre><code>  &lt;!-- for Tiles --&gt;
  &lt;bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" id="viewResolver"&gt;  
      &lt;property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/&gt;            
  &lt;/bean&gt;
  
  &lt;bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" id="tilesConfigurer"&gt;  
      &lt;property name="definitions" value="/WEB-INF/tiles-definitions.xml" /&gt;           
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>tiles-definitions.xml</strong></p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;tiles-definitions&gt;  
      &lt;definition name="base.definition" template="/WEB-INF/views/tilesMainTemplate.jsp"&gt;  
          &lt;put-attribute name="title" value=""&gt;&lt;/put-attribute&gt;  
          &lt;put-attribute name="header" value="/WEB-INF/views/header.jsp"&gt;&lt;/put-attribute&gt;  
          &lt;put-attribute name="menu" value="/WEB-INF/views/home.jsp"&gt;&lt;/put-attribute&gt;  
          &lt;put-attribute name="body" value=""&gt;&lt;/put-attribute&gt;  
          &lt;put-attribute name="footer" value="/WEB-INF/views/footer.jsp"&gt;&lt;/put-attribute&gt;  
      &lt;/definition&gt;  
  
      &lt;definition extends="base.definition" name="saveAd"&gt;  
          &lt;put-attribute name="title" value="Post your free Ad"&gt;&lt;/put-attribute&gt;  
          &lt;put-attribute name="body" value="/WEB-INF/views/adSave.jsp"&gt;&lt;/put-attribute&gt;  
      &lt;/definition&gt;  
  
  
  &lt;/tiles-definitions&gt;  
  </code></pre>
  
  <p>then there are tilesMainTemplate, header and footer jsp's which i dont think have any issues. any help in this regard will be highly appreciated, Thanks in advance.</p>