[ 
https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52855#action_52855
 ] 

Lars Heinemann edited comment on SMX4-322 at 7/17/09 1:14 AM:
--------------------------------------------------------------

First of all this is the JIRA of Apache ServiceMix and not the one of Fuse ESB. 
I just wondered about the version 4.1.0 because it is not even released yet. 
Beside this the error seems to be normal in my opinion because the file monitor 
which watches the deploy folder recognized that the file is still being copied 
so it just spits out this error and tries again later on (at least I think so). 

After cut&paste the file again inside deploy folder it got deployed so maybe 
the only thing is to take a look at the monitor class what happens to artifacts 
which had an error on deploy time. Seems it will not be tried again.


      was (Author: lhein):
    First of all this is the JIRA of Apache ServiceMix and not the one of Fuse 
ESB. I just wondered about the version 4.1.0 because it is not even released 
yet. Beside this the error seems to be normal in my opinion because the file 
monitor which watches the deploy folder recognized that the file is still being 
copied so it just spits out this error and tries again later on (at least I 
think so).

Is there a try to deploy this SA afterwards (after copying is finished) ?

  
> 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