Copying zip file to deploy directory on Windows causes error from 
java.util.zip.ZipFile file in use by another process
----------------------------------------------------------------------------------------------------------------------

                 Key: SMX4-322
                 URL: https://issues.apache.org/activemq/browse/SMX4-322
             Project: ServiceMix 4
          Issue Type: Bug
    Affects Versions: 4.1.0
         Environment: Windows XP SP2, Sun JVM 1.5.0
            Reporter: Jean Jacobs


Created a JBI SA zip file.  Copied it to the <install-dir>/deploy directory 
using Windows Explorer copy/paste.  When the SA attempted to be started, the 
following error was seen in the servicemix.log.  I was able to get the zip file 
deployed by cutting and pasting the file (rather than copy/paste).

java.io.FileNotFoundException: 
C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip
 (The process cannot access the file because it is being used by another 
process)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:203)
        at java.util.jar.JarFile.<init>(JarFile.java:132)
        at java.util.jar.JarFile.<init>(JarFile.java:97)
        at 
org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
        at 
org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
        at 
org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
        at 
org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
        at 
org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
        at 
org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
        at 
org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to