[Randahl Fink Isaksen]
> I am wondering if I am the the only one getting an error when deploying a
> new .ear (this happens often but not always):
>
> Auto-unpacking C:\(...)\project.ear... Error unpacking: IO Error: error in
> opening
> zip file
>
> Does anybody know why this happens, and is there a work-around apart from
> restarting Orion?
I've seen this mainly when Orion doesn't wait long enough and tries
to open an .ear file before it's fully copied-over from another
location. The quick fix is to re-try the transfer. It's not an
"easy" problem per-se, but polling on file size when the time/date stamp
changes and extracing when the filesize is the same (and is non-zero)
for 2 consecutive checks is a method I used to use that worked well.
Yes, it's a heuristic.
But, yes, it's better than what's there now :)
For "most" people, the transfer is fast enough once you're overwriting
the .ear to where it's not a big deal. You can workaround by transferring
into a tmp file and doing a rename (or 2 renames, at most)
How to treat this can lead to a religious war, which is why I've kept
from bringing it up in the past.
James
--
James Manning <[EMAIL PROTECTED]>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4