title: org.apache.tiles.definition.NoSuchDefinitionException
body: <p>I tried add tiles in to this project. but it gives same error again and again. 
  The error is 
  "org.apache.tiles.definition.NoSuchDefinitionException: /login-success"</p>
  
  <p>Here is my folder structure.</p>
  
  <p>Here is my struts.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8" ?&gt;  
  &lt;!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"   
  "http://struts.apache.org/dtds/struts-2.1.dtd"&gt;  
  
  &lt;struts&gt;  
      &lt;package name="tile_Framework" extends="tiles-default" &gt; 
          &lt;action name="login" class="tile_Framework.Login" method="execute"&gt;  
              &lt;result name="success" type="tiles"&gt;/login-success&lt;/result&gt;  
              &lt;result name="error" type="tiles"&gt;/login-error&lt;/result&gt;  
          &lt;/action&gt;  
      &lt;/package&gt;  
  &lt;/struts&gt;   
  </code></pre>
  
  <p>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="login-success" template="/layoutmanager.jsp"&gt;   
          &lt;put-attribute name="title" value="Welcome Page"/&gt;   
          &lt;put-attribute name="body" value="/login-success.jsp"/&gt;   
      &lt;/definition&gt;  
  
      &lt;definition name="login-error" template="/layoutmanager.jsp"&gt;   
          &lt;put-attribute name="title" value="Login Error"/&gt;   
          &lt;put-attribute name="body" value="/login-error.jsp"/&gt;   
      &lt;/definition&gt;  
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>Here is web.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
           version="3.1"&gt;
  
      &lt;welcome-file-list&gt;  
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;  
      &lt;/welcome-file-list&gt;  
      &lt;filter&gt;  
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;  
          &lt;filter-class&gt;  
              org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter  
          &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;listener&gt;  
          &lt;listener-class&gt;org.apache.struts2.tiles.StrutsTilesListener&lt;/listener-class&gt;  
      &lt;/listener&gt;  
  
      &lt;session-config&gt;
          &lt;session-timeout&gt;
              30
          &lt;/session-timeout&gt;
      &lt;/session-config&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Here is my layoutmanager.jsp</p>
  
  <pre><code>    &lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;tiles:getAsString name="title" /&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;%@  include file="header.jsp" %&gt;
  &lt;tiles:insertAttribute name="body" /&gt;
  &lt;%@ include file="footer.jsp" %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>How can I over come from this error.</p>