When the application is published, it is found that the production environment will compile the environment to compile the war package to the production environment, the report exception is as follows:
[Java]View Plain Copy
- caused by: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:127)
- At java.util.jar.jarfile.<init> (Jarfile.java:135)
- At java.util.jar.jarfile.<init> (jarfile.java:)
- At sun.net.www.protocol.jar.urljarfile.<init> (urljarfile.java:)
- At sun.net.www.protocol.jar.URLJarFile.getJarFile (urljarfile.java:-)
- At sun.net.www.protocol.jar.JarFileFactory.get (jarfilefactory.java:)
First confirm that the war package is good, because it is the test environment can run up, that means the environment is out of the question, after the investigation, found that the JDK version of the compilation environment is 1.6.18, the production environment JDK version is 1.6.25, the compilation environment and the production environment of the JDK version of the same, no error, the program runs normally.
The compilation environment is not the same as the JDK version of the build environment, reported: Java.util.zip.ZipException: