> From: Claude Warren Jr [mailto:[EMAIL PROTECTED] > Subject: invalid LOC header (bad signature) when running in > servlet only > > Why does this only occur in the servlet environment and > not in the stand alone environment even when reading the > file from the same location?
What mechanism do you use in the stand alone program? The JDK's jar tool, for example, reads the entries in zip/jar files sequentially, rather than via the TOC, so it would not encounter this error. > I suppose it might have something to do with the JarURLConnection > implementation. Access via a URL seems to always goes through the ZIP TOC, as far as I can tell. > Perhaps I can just work around the possible JarURLConnection defect. It's likely not a defect in the JarURLConnection mechanism - the file itself has most likely been corrupted somewhere along the way. Try rebuilding the file, making sure not to FTP it in ASCII mode, and see if the problem is corrected. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]