title: eclipse vs tomcat deployment - exported war (partially) fails while the project runs in eclipse
body: <p>I have a webapp in eclipse juno - when I hit <em>Run on server</em> runs fine - either inside eclipse's browser (I am on windows) or in FF.</p>
  
  <p>Right click > <strong>export war</strong> > dump this into $CATALINA_HOME/webapps > all is working fine (got unpacked alright) <strong><em>EXCEPT</em></strong> </p>
  
  <ul>
  <li><p>my custom tags - I had a <code>WEB-INF\functions.tld</code> file which is apparently not read. The only difference between the auto-generated eclipse <code>server.xml</code> (in <code>Servers</code> project) and the default Tomcat <code>server.xml</code> was the line :</p>
  
  <pre><code>&lt;Context docBase="ted2012" path="/ted2012" 
  reloadable="true"source="org.eclipse.jst.jee.server:ted2012"/&gt;
  </code></pre></li>
  </ul>
  
  <p><code>source</code> being a WTP specific attribute.<br>
  <em>This I managed to solve</em> - see my <a href="https://stackoverflow.com/a/12956256/281545">answer</a></p>
  
  <ul>
  <li>Tomcat won't get the Url correctly through - see the pics in my <a href="https://stackoverflow.com/a/12956256/281545">answer</a>.</li>
  </ul>
  
  <p>Questions :</p>
  
  <ol>
  <li>(Unsolved) Why Tomcat does not decode the Url correctly - <strong>while eclipse does</strong> ? Where is the failure ? Do see my specific <a href="https://stackoverflow.com/questions/14914983/webapp-behaves-as-expected-when-run-from-eclipse-while-when-exported-as-war-fail">question for this</a> for extensive details on the call stack and where exactly tomcat fails</li>
  <li>Why did not tomcat see the tld in the first place while eclipse did ? Why did I have to edit the <code>web.xml</code> ? (worked around in my answer, should be another question)</li>
  </ol>
  
  <p>The code is in <a href="https://github.com/Utumno/ted2012" rel="nofollow noreferrer">github</a> - in the file INSTRUCTIONS.txt there are detailed instructions to set the project up and reproduce the bug pictured in my answer below.</p>
  
  <p>Tomcat 7.0.32, eclipse 4.2, java 1.7.9</p>