title: What is the cause for the failure: "jarsigner: attempt to rename {file} to {file}.org failed" when signing jars with ant?
body: <p>I am getting the error:  </p>
  
  <blockquote>
    <p>[signjar] jarsigner: attempt to rename
    C:\workspace\line_editor\lib\icon.jar
    to
    C:\workspace\line_editor\lib\icon.jar.orig
    failed</p>
  </blockquote>
  
  <p>when attempting to self sign a set of jars with ant inside Eclipse. The ant build has worked fine in this project and similar code in other projects.  I made some small changes to code and tried to rebuild and keep getting this error.</p>
  
  <p>Here is the related ant target:</p>
  
  <pre><code>&lt;target name="sign" depends="jar" description="Signs Jars"&gt;
  
          &lt;genkey keystore="myKeystore1" alias="something" storepass="somethingpass" 
            dname="CN=Classification, OU=NAPA, O=GPC, C=US"/&gt; 
  
  
          &lt;signjar keystore="myKeystore1" alias="something" storepass="somethingpass"&gt;
              &lt;fileset file="${web.dir}/${jar.name}" /&gt;
              &lt;fileset dir="${lib.dir}"&gt;
                  &lt;include name="*.jar"/&gt;
              &lt;/fileset&gt;  
          &lt;/signjar&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>I deleted the project and pulled it down again from our repository.  So it has the same default project settings as other projects that this part does not fail.  I looked at the .jar in question and it was not read-only.  I changed the name and the next alphabetical .jar file also failed.  There is no program running that is accessing the .jars in this folder.  </p>
  
  <p>Any suggestions as to cause?</p>