Community
Participate
Working Groups
It appears PublishUtil.smartCopy always publish when there is no change, for example webserviceutils.jar in the \lib folder where should not publish. In this case, the jar is being used by the application. !MESSAGE Error copying file to D:\0613.12\ws1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wpClientEAR.ear\wpClient.war\WEB-INF\lib\webserviceutils.jar: Error deleting D:\0613.12\ws1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wpClientEAR.ear\wpClient.war\WEB-INF\lib\webserviceutils.jar !STACK 0 java.lang.Exception: Error deleting D:\0613.12\ws1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wpClientEAR.ear\wpClient.war\WEB-INF\lib\webserviceutils.jar at org.eclipse.jst.server.core.PublishUtil.copyFile(PublishUtil.java:127) at org.eclipse.jst.server.core.PublishUtil.copyFile(PublishUtil.java:162) at org.eclipse.jst.server.core.PublishUtil.smartCopy(PublishUtil.java:278) at org.eclipse.jst.server.core.PublishUtil.smartCopy(PublishUtil.java:284) at org.eclipse.jst.server.core.PublishUtil.smartCopy(PublishUtil.java:284)
Similar problem in WTP 1.5 https://bugs.eclipse.org/bugs/show_bug.cgi?id=120709
Created attachment 41160 [details] Patch to check timestamps during smart publish The problem was already found and fixed on the 1.5 stream. The smartPublish() method has not been checking timestamps on files and as a result republishes every file, every single time. This patch backports the critical parts of the solution from 1.5 and does not include better messages on failure or publishing retries. The change is to check timestamps and only publish required files, which is a huge performance fix and avoid touching files that haven't been changed and are locked by the server. Adopter has already tested this patch and the changes have been running fine in 1.5.
+1 for WTP 1.0.3 since this is a known fix in 1.5 and is a severe problem.
+1 for 1.0.3 inclusion
Fix released to 1.0.3 stream.
VERIFIED
Close the problem.
New Gerrit change created: https://git.eclipse.org/r/107841