title: Servlet 3.0 tiles definition in jar META-INF resources
body: <p>I am using the new Servlet 3.0 approach of packaging web resources (such as Javascript, CSS, and JSPs) in JAR files. The approach says that everything under JARROOT/src/META-INF/resources will get mounted to the WAR root when the application starts. All works file for CSS and Javascript but not so much for Struts tiles. </p>
  
  <p>This is the structure I have in the JAR:</p>
  
  <pre><code>base.jar
  |--src/
  |----META-INF/
  |------base.tld
  |------resources/
  |--------base/
  |----------css/
  |----------js/
  |----------baseTiles.xml
  </code></pre>
  
  <p>In my application (WAR) web.xml I got this for the tiles:</p>
  
  <pre><code>&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,/base/baseTiles.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>When I start my application I do not get any errors about the baseTiles.xml so I assume it would the tiles files. However, trying to reference a tile from a JSP (using the <code>&lt;tiles:insertAttribute&gt;</code> tag) fails with </p>
  
  <pre><code>org.apache.tiles.jsp.taglib.NoSuchAttributeException: Attribute 'base.nav' not found.
  </code></pre>
  
  <p>What do you think the is?</p>
  
  <p>Summary and other info:</p>
  
  <ul>
  <li>Using JBoss eap 6.1 Alpha </li>
  <li>Using Struts 2.1.4</li>
  <li>The base JAR is included with the WAR in the lib directory</li>
  <li>The base JAR contain all the files mentioned above (including baseTiles.xml)</li>
  </ul>
  
  <p>Thank you for your help!!</p>