Bug 51069 - Unable to rename old file to temporary file JAR TASK
Summary: Unable to rename old file to temporary file JAR TASK
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.6.0
Hardware: PC Windows XP
: P2 critical (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on: 49117
  Show dependency tree
Reported: 2011-04-15 02:29 UTC by aby
Modified: 2011-05-17 02:12 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description aby 2011-04-15 02:29:07 UTC
+++ This bug was initially created as a clone of Bug #49117 +++

While trying to add manifest to the jar file, the JAR task fails with the error:
"Unable to rename old file <> to temporary file."

This was an upgrade from jdk1.5 to jdk1.6. The build works fine with the jdk1.5.

Hi All,

I am migrating an existing Weblogic 9.2 application to Weblogic 10.3.
I am using Ant 1.67 to build the project.

I have changed the weblogic version and the JRockit the the build.bat file.

When I build the project, I get the same error as listed in Bug 49117 i.e " 

Unable to rename old file (C:\MiddleTier\RewardZone\source\java\buildpackage\buildtemp\eartemp\ICECommon-ejbs.jar) to temporary file"

The ANT target where I am updating the manifest file with  the jar reference throws the above error.

I tried using a higher verison of Ant 1.8 and it built the project without any errors. But it could not find the RMIC references and threw the classnotfound exception during run time.

Any pointers on same be apprecited.