title: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
body: <p>I am trying to integrate <code>Tiles3.0.3</code> with Struts2, but I am getting <code>java.lang.NoClassDefFoundError and java.lang.ClassNotFoundException</code>.</p>
  
  <p>Here is my web.xml</p>
  
  <pre><code>&lt;web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&gt;
  
  &lt;context-param&gt;
  &lt;param-name&gt;
    org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
  &lt;/param-name&gt;
  &lt;param-value&gt;
    /WEB-INF/tiles.xml
  &lt;/param-value&gt;
  &lt;/context-param&gt;
   &lt;listener&gt;
  &lt;listener-class&gt;
    org.apache.struts2.tiles.StrutsTilesListener
  &lt;/listener-class&gt;
  &lt;/listener&gt;    
  &lt;filter&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;filter-class&gt;org.apache.struts2.dispatcher.FilterDispatcher&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;session-config&gt;
      &lt;session-timeout&gt;
          30
      &lt;/session-timeout&gt;
  &lt;/session-config&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;example/HelloWorld.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>And here is my tiles.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;!DOCTYPE tiles-definitions PUBLIC  "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
    "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"&gt;
  
  &lt;tiles-definitions&gt;
  &lt;definition name="baseLayout" template="/baseLayout.jsp"&gt;
    &lt;put-attribute name="title"  value="Template"/&gt;
    &lt;put-attribute name="banner" value="/banner.jsp"/&gt;
    &lt;put-attribute name="menu"   value="/menu.jsp"/&gt;
    &lt;put-attribute name="body"   value="/body.jsp"/&gt;
    &lt;put-attribute name="footer"   value="/footer.jsp"/&gt;
  &lt;/definition&gt;
  &lt;definition name="tiger" extends="baseLayout"&gt;
    &lt;put-attribute name="title"  value="Tiger"/&gt;
    &lt;put-attribute name="body"   value="/tiger.jsp"/&gt;      
  &lt;/definition&gt;
  
  &lt;definition name="lion" extends="baseLayout"&gt;
    &lt;put-attribute name="title"  value="Lion"/&gt;
    &lt;put-attribute name="body"   value="/lion.jsp"/&gt;      
  &lt;/definition&gt;
  
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>And these are the errors I am getting</p>
  
  <pre><code>SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
  java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener
  Caused by: java.lang.ClassNotFoundException: org.apache.tiles.web.startup.TilesListener
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
  ... 52 more
  </code></pre>
  
  <p>And these are the jars which I am using :-
  <code>commons-beanutils-1.8.2.jar</code>,<code>commons-digester-1.7.jar</code>,<code>struts2-tiles-plugin-2.2.3.1.jar</code>,
  <code>tiles-api-3.0.3.jar</code>,<code>tiles-compat-3.0.3.jar</code>, <code>tiles-core-3.0.3.jar</code>, <code>tiles-jsp-3.0.3.jar,tiles-servlet-3.0.3.jar</code></p>
  
  <p>Please help me out. </p>