tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Redeploy issues loading contents from some .jar at WEB-INF/lib
Date Wed, 14 Nov 2007 17:34:43 GMT
> From: Leonardo Pinho [] 
> Subject: Redeploy issues loading contents from some .jar at 
> WEB-INF/lib
> I'm getting some errors when I do redeploy of a spring 
> application at Tomcat. This web app loads some content
> from a jar file (at WEB-INF/lib/common.jar):
> java.lang.InternalError: jzentry == 0,
>  jzfile = 1607179080,
>  total = 152,
>  name =
>  i = 15,
>  message = invalid LOC header (bad signature)

This message indicates that the ZIP (jar) file is corrupted, or at least
the ZIP library thinks it is.  There are two ways of accessing a ZIP
file: sequentially, starting at the beginning, or randomly using the TOC
at the end of the file.  This message only occurs when using the TOC.  I
don't know if access is different on initial deployment vs.

One typical cause of corruption is doing an ASCII FTP transfer (rather
than binary) from a Windows box.

> I'm using Tomcat 5.5.20 on Red Hat Linux...

What JVM version are you using?  There were some fixes that went into
this area some time ago in 1.5; is your JRE/JDK up to date?

Does the problem occur if you set unpackWAR to true?  It appears that
you have it disabled for particular this webapp.

 - Chuck

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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message