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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.