title: Eclipse DEPLOYMENTS IN ERROR
body: <p>In Eclipse , after i run my project on jboss 5.1 server, my deployment fails.
  <br>
  In my console i would get this error <br><br>
  <code>DEPLOYMENTS IN ERROR <br><br>Deployment "vfsfile:/C:/jboss5/JBoss-5.1.0GA/server/default/deploy/ToolsPlatform-app.ear/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss5/JBoss-5.1.0GA/server/default/deploy/ToolsPlatform-app.ear/ToolsPlatform-web-1.0.war/ deployment failed
  </code> </p>
  
  <p>I tried:<br>
  <strong>1.Cleaning the project. ,Doesn't work i.e Deployment of my war file fails<br>
  2.Stopping the server, cleaning ,publishing. Same error.<br>
  3.Restarting Eclipse. Works 1 out of 10 times, then after a single successful deployment, same error occurs.</strong> </p>
  
  <p>Only thing that works is , i have to <br></p>
  
  <ul>
  <li><p>Exit Eclipse-> go to jboss/.../server/default</p>
  
  <p>,Then manually  deleting 3 folders <br>
  tmp,log,work .. <br>And</p></li>
  <li><p>then deleting the war file(in my case one.war) from the deploy folder.</p></li>
  </ul>
  
  <p>Edit: Also if i keep on try to run my project on server, i will get this following error in my console too:<br>
  <code>
  BUILD FAILED
  C:\eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.6.1.v200904151730\buildfiles\jboss323.xml:12: Unable to remove existing file C:\jboss5\JBoss-5.1.0GA\server\default\deploy\one.war</p>
  
  <p></code></p>
  
  <p>Need help.</p>