title: Could not clean server of obsolete files: null java.lang.NullPointerException
body: <p>I was using eclipse and tomcat 7.0 fine for all web application till yesterday. Unfortunately i lost my eclipse folder(which is i am running exe) and temp folder(which is workspace directory). But i have backup of that unziped eclipse folder so i past it and started eclipse to add new project in new workspace(home/xx/newtemp) and tried to run by tomcat 7.0 but i am getting "<strong>Could not clean server of obsolete files: null
  java.lang.NullPointerException</strong>".Here i show my issue by images,</p>
  
  <p><strong>Note :Even tomcat started and home page running in localhost:8081 but whn i add new project and run in tomcat, same error raised and nothing happen.</strong></p>
  
  <p><img src="https://i.stack.imgur.com/9NObe.png" alt="enter image description here"></p>
  
  <p>So far i tried,</p>
  
  <pre><code>    1 stop server
  
      2 project -&gt; clean
  
      3 project build (I had automatic build disabled)
  
      4 delete server
  
      5 delete Servers folder
  
      6 restart Eclipse
  </code></pre>
  
  <p>and also,</p>
  
  <pre><code>    Click on Servers tab and Stop the server in use if it's running
      Right click on the server again and select Clean...
      Right click again and select Clean Tomcat Work Directory...
  </code></pre>
  
  <p>and also,</p>
  
  <pre><code>you have to delete the .snap file located in the directory :
  
  &lt;workspace-directory&gt;\.metadata\.plugins\org.eclipse.core.resources
  After deleting this file, you could start Eclipse with no problem.
  </code></pre>
  
  <p>and also,</p>
  
  <pre><code>To resolve this issue you have to delete tmp folder in the following directory
  
  &lt;workspace-directory&gt;\.metadata\.plugins\org.eclipse.wst.server.core
  If there is any problem on deleting this folder then restart your eclipse then again delete that folder.
  </code></pre>
  
  <p>I have tried many ways but i could not find fix .</p>
  
  <p>I hope someone will help me out from the fix.</p>