--- container/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java 2006-03-04 20:24:28.000000000 -0500 +++ ../apache-tomcat-5.5.16-src/container/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java 2006-03-22 13:23:17.555736808 -0500 @@ -630,7 +630,10 @@ File localWarCopy = new File(deployedPath, basename + ".war"); copy(localWar, localWarCopy); localWar = localWarCopy; - copy(localWar, new File(getAppBase(), basename + ".war")); + File secondCopy = new File(getAppBase(), basename + ".war"); + if( !localWar.getCanonicalPath().equals(secondCopy.getCanonicalPath()) ) { + copy(localWar, secondCopy); + } } // Perform new deployment check(path);