title: Tomcat configuration in Eclipse
body: <p>I'm using Eclipse Luna with Tomcat 8 and am confused by the different locations of config files.</p>
  
  <p>I've installed Tomcat on my local machine and configured Tomcat in Eclipse as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/TcPPH.png" alt="enter image description here"></p>
  
  <p>So there are 4 directories involved</p>
  
  <ul>
  <li><p>a) catalina home:  C:\Program Files\AppServers\Tomcat8 </p></li>
  <li><p>b) catalina base: C:\Users\xxx\projectname\Tomcat</p></li>
  <li><p>c) the configuration-path within my Eclipse workspace:
  /Servers/Tomcat v8.0  Server at localhost-config</p></li>
  <li><p>d) Deploy path: wtpwebapps which is a subdirectory of  a) </p></li>
  </ul>
  
  <p>Both in a,b,c I have the same set of config-files (catalina.properties, context.xml, server.xml...). What is the hierarchy of these files, where do I configure my server for a specific application that I start from within Eclipse during development?</p>
  
  <p>Edit: Related to this: What is happening if I right-click on the server in the servers-tab and choose "clean Tomcat working directory" or simply "clean"? </p>