java.util.zip.ZipException: zip file is empty error while deploying application in EAP

Solution Unverified - Updated -

Issue

  • Below error logged in server.log and application fails to deploy :
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."ABC.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ABC.war".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "ABC.war"

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."ABC.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ABC.war".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "ABC.war"
...
...
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018037: Failed to process WEB-INF/lib: "/opt/jboss-eap-6.2/standalone/deployments/ABC.war/WEB-INF/lib/XYZ.jar"
...
...
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018037: Failed to process WEB-INF/lib: "/opt/jboss-eap-6.2/standalone/deployments/ABC.war/WEB-INF/lib/XYZ.jar"
...
...
Caused by: java.util.zip.ZipException: zip file is empty
    at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content