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



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: 
 >JBoss3 and ZipException (From: "Kristoff Batizy" <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.