Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JBoss3 and ZipException



I'm not sure, if a link is suitable to solve the problem (neither am I sure, if this is the problem anyway!). If you are using Ant, I'd recommend to create the war file in a temporary directory and then _move_ the file to the deply directory. This should be fast enough and should work.

-Moritz.

Am Samstag den, 31. August 2002, um 17:55, schrieb james terry:

If this is the case, one workaround might be to copy the large file to a neighboring directory & when done, create a link out of the JBoss deployment dir over to the real file. The link creation should happen quickly enough to avoid this problem.


james


On Saturday, August 31, 2002, at 01:15 AM, Moritz Petersen wrote:

Hard to say, but I don't believe it is a JDK bug (I experienced this once on Windows).

I assume, you have a very big .war file to deploy (maybe cocoon?). The auto-deployment process of JBoss is quite cool (just copy the file into the deploy directory and JBoss automagically deploys it for you..), but if the file copy process takes too long, JBoss starts deploying before the file is complete.

Maybe that's the answer.

-Moritz.


Am Freitag den, 30. August 2002, um 23:51, schrieb Kristoff Batizy:

I am trying to run JBoss3 on 6C115 and I get:

java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:105)
at java.util.jar.JarFile.<init>(JarFile.java:110)
------snip-------

So, I popped open ZipFile.java and saw:

public ZipFile(File file, int mode) throws IOException {
if (((mode & OPEN_READ) == 0) ||
((mode & ~(OPEN_READ | OPEN_DELETE)) != 0)) {
throw new IllegalArgumentException("Illegal mode: 0x"+ Integer.toHexString(mode));
}
String name = file.getPath();
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkRead(name);
}
(line 105) jzfile = open(name, mode, file.lastModified());
this.name = name;
this.total = getTotal(jzfile);
}

private static native long open(String name, int mode, long lastModified);
private static native int getTotal(long jzfile);


And since it's a problem with a native method, is this a bug with the JDK?
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: JBoss3 and ZipException (From: james terry <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.