Why am I getting java.util.zip.ZipException: invalid CEN header (bad signature) in JBoss EAP
Issue
- When trying to deploy a war file the following error below is logged, What can cause this problem and how to fix it?
Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
- Deployment issues while deploying war file.Getting above defined error.
- Application failing to deploy in JBoss EAP 6 with :
Caused by: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_45]
at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_45]
at java.util.zip.ZipFile.<init>(ZipFile.java:143) [rt.jar:1.6.0_45]
at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:823) [jboss-vfs-3.2.5.Final-redhat-1.jar:3.2.5.Final-redhat-1]
at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:504) [jboss-vfs-3.2.5.Final-redhat-1.jar:3.2.5.Final-redhat-1]
at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:533) [jboss-vfs-3.2.5.Final-redhat-1.jar:3.2.5.Final-redhat-1]
at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:107) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:93) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
... 6 more
Environment
- RedHat JBoss Enterprise Application Platform (EAP)
- 6.x
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
