java.util.zip.ZipException: error in opening zip file 问题怎么解决
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1035)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:153)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:88)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1063)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:153)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:88) 展开
引入的jar包不对,或者你的压缩文件不标准。
一般就会报这个错误。
关于上面英语的翻译:
Key features(主要特性):
Create, Add, Extract, Update, Remove files from a Zip file(针对ZIP压缩文件创建、添加、抽出、更新和移除文件)
Read/Write password protected Zip files(读写有密码保护的Zip文件)
Supports AES 128/256 Encryption(支持AES 128/256算法加密)
Supports Standard Zip Encryption(支持标准Zip算法加密)
Supports Zip64 format(支持zip64格式)
Supports Store (No Compression) and Deflate compression method(支持Store(非压缩)和Deflate压缩方法---不太明白)
Create or extract files from Split Zip files (Ex: z01, z02,...zip)(针对分块zip文件创建和抽出文件)
Supports Unicode file names(支持Unicode编码文件名)
Progress Monitor(进度监控)
流非正常关闭,有可能打不开