tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: invalid LOC header (bad signature) when running in servlet only
Date Fri, 26 Jan 2007 04:50:01 GMT
> From: Claude Warren Jr [mailto:claude@xenei.com] 
> Subject: invalid LOC header (bad signature) when running in 
> servlet only
> 
>  message = invalid LOC header (bad signature)

This is an indication of a corrupted .zip file.  ZIP files can be read
either sequentially or via the table of contents at the end of the file;
the LOC header is only used when access is via the TOC.  The
java.util.zip classes use the TOC, while many other mechanisms use
sequential access and do not encounter the invalid LOC header.

One way this corruption can be introduced is by doing an FTP of the file
in ASCII mode using a Windows FTP client; this has the annoying habit of
converting LF characters into CR/LF sequences (or vice versa), which is
not something you want to do with a ZIP file.  You should be able to get
rid of the error by rebuilding the file.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message