title: java.util.zip.ZipException: error in opening zip file
body: <p>I have a Jar file, which contains other nested Jars. When I invoke the new <code>JarFile()</code> constructor on this file, I get an exception which says:</p>
  
  <blockquote>
    <p>java.util.zip.ZipException: error in opening zip file</p>
  </blockquote>
  
  <p>When I manually unzip the contents of this Jar file and zip it up again, it works fine.</p>
  
  <p>I only see this exception on WebSphere 6.1.0.7 and higher versions. The same thing works fine on tomcat and WebLogic. </p>
  
  <p>When I use JarInputStream instead of JarFile, I am able to read the contents of the Jar file without any exceptions.</p>