users@glassfish.java.net

ZipError during deployment

From: <forums_at_java.net>
Date: Wed, 2 Nov 2011 17:11:53 -0500 (CDT)

 I'm using Maven 3 and Cargo to do deployments to a local GlassFish 3.1.1
(b12) server. I'm running into intermittent errors doing deployments - I can
run the same build 10 times with no code changes, and it'll work maybe 6
times and fail the other 4. The specific error I'm getting is:

<code>

Caused by: org.apache.catalina.LifecycleException: java.util.zip.ZipError:
jzentry == 0,

 jzfile = 140719648,

 total = 1488,

 name =
C:\glassfish3\glassfish\domains\domain1\applications\Web-1.0-SNAPSHOT\WEB-INF\lib\Services-1.0-SNAPSHOT.jar,

 i = 1456,

 message = null

at
org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5475)

at
com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:581)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:5363)

... 38 more

Caused by: java.util.zip.ZipError: jzentry == 0,

 jzfile = 140719648,

 total = 1488,

 name =
C:\glassfish3\glassfish\domains\domain1\applications\Web-1.0-SNAPSHOT\WEB-INF\lib\Services-1.0-SNAPSHOT.jar,

 i = 1456,

 message = null

at java.util.zip.ZipFile$2.nextElement(ZipFile.java:333)

at java.util.zip.ZipFile$2.nextElement(ZipFile.java:311)

at java.util.jar.JarFile$1.nextElement(JarFile.java:225)

at java.util.jar.JarFile$1.nextElement(JarFile.java:220)

at org.apache.jasper.runtime.TldScanner.scanJar(TldScanner.java:448)

at org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:689)

at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:350)

at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:239)

at
org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5467)

</code>

I've done a bit of research on this issue, and it appears that a common cause
is a corrupt WAR file. In the cases where the deployment failed, I verified
that the WAR file and JARs included in it are correct. It almost appears as
though the ZipInputStream is being closed prematurely by another thread, but
I'm not sure what would be causing that. If anyone has run into this before
or has any ideas, I'd appreciate some feedback.

Versions/Platforms:

Glassfish v3 3.1.1 (build 120
JDK 6 update  27
Windows 7, 64 bit

Thanks.


--
[Message sent by forum member 'suresk']
View Post: http://forums.java.net/node/859970