Tomcat error: "java.util.zip.ZipException: error in opening zip file"

  • 7000421
  • 19-May-2008
  • 27-Apr-2012

Environment

Novell Tomcat on NetWare 4.0
Novell NetWare 6.5

Situation

Tomcat is not starting. The Logger Screen displays the error: "java.util.zip.ZipException: error in opening zip file" followed by the full java error.

java: Class com.novell.application.tomcat.util.tccheck.LDAPVerifier exited successfully
java.util.zip.ZipException: error opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:111)
at java.util.jar.JarFile.(JarFile.java:127)
at java.util.jar.JarFile.(JarFile.java:65)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1035)
at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:174)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:157)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:100)
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.StandardDlassLoader.(StandardClassLoader.java:174)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:157)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:100)
java: Class org.apache.catalina.startup.Bootstrap exited with status 1

Resolution

This error typically indicates corruption in the .jar file that Tomcat is trying to open. As there is no way to know exactly which file or files have the problem, the easiest way to correct the problem is to replace the .jar files with those from a working server.

Copy the following folders and files from a working server and overwrite the files on the non-working server.

SYS:\adminsrv\(any jar files in this folder)
SYS:\adminsrv\lib

SYS:\Tomcat\4\common
SYS:\Tomcat\4\server
SYS:\Tomcat\4\shared

After replacing these files, try to start Tomcat again by entering "tomcat4" at the server console. If Tomcat still does not start or if there is not another working server available to copy these files from, contact Novell Support for assistance.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.