title: JBoss deployment throws 'java.util.zip.ZipException: error in opening zip file' on Linux?
body: <p>I deployed a <strong>large EAR</strong> (contained more than ~1024 jars/wars) on <strong>JBoss</strong> running with <strong>Java 6</strong> on <strong>Linux</strong>, and the deployment process cried throwing the following exception:</p>
  
  <pre><code>java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:901)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  ....
  Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
  at org.jboss.util.file.JarArchiveBrowser.&lt;init&gt;(JarArchiveBrowser.java:74)
  at org.jboss.util.file.FileProtocolArchiveBrowserFactory.create(FileProtocolArchiveBrowserFactory.java:48)
  at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:57)
  at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:213)
  ....
  </code></pre>