title: Eclipse Tomcat Publishing Error: FlatFile Cannot be cast to IFlatFolder
body: <p>I have an application which I can't deploy or run in Tomcat because as soon as I attempt to start Tomcat in Eclipse (with this application configured in Add/Remove Project), I get this error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Could not publish to the server.
  org.eclipse.wst.common.componentcore.internal.flat.FlatFile cannot be cast to org.eclipse.wst.common.componentcore.internal.flat.IFlatFolder
  </code></pre>
  
  <p>This happens on starting, publishing, and cleaning the Tomcat server in Eclipse, as long as my application is configured there. When I remove the application, I can publish fine.</p>
  
  <p>What is this error about? I couldn't find any resources in Google.</p>