> From: Leonardo Pinho [mailto:[EMAIL PROTECTED] > 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 = > /usr/local/apache-tomcat-5.5.20/work/Catalina/localhost/DepositEngineTRA NS/WEB-INF/lib/common.jar, > 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. redeployment. 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 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]