jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes tomcat ZipException when starting up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat ZipException when starting up" Watch "tomcat ZipException when starting up" New topic

tomcat ZipException when starting up


Joined: Aug 22, 2002
Posts: 1
I am getting a ZipException when starting tomcat.
I installed jakarta-tomcat-4.0.4
My OS is Windows XP Professional
I placed my class files in:
and placed the libraries for my apps in:
I get the following exception when starting up:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
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:110)
at java.util.jar.JarFile.<init>(JarFile.java:115)
at java.util.jar.JarFile.<init>(JarFile.java:82)
... blah blah blah
The only .zip files in my lib directory are:
Any ideas on how to fix?
Ken Burcham

Joined: Dec 17, 2002
Posts: 2
I have this same problem... No resolution yet. It began as soon as I upgraded to jdk1.4.0. Running winxppro. Not positive of the tomcat version (4.0.4?). Here's the error:
I'll post the answer if I figure it out.

Bootstrap: Class loader creation threw exception
java.util.zip.ZipException: Access is denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:82)
at org.apache.catalina.startup.ClassLoaderFactory.validateJarFile(ClassL
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
Ken Burcham

Joined: Dec 17, 2002
Posts: 2
ok, figured it out.
I'd created a directory called 'old tools.jar' in which I placed, you guessed it, the old tools.jar file. so tomcat's bootstrapper was trying to extract the contents of the ".jar" file and since it happened to have a space and be a directory (not sure which is the actual culprit), I think that's what it blew up on. doh!
I agree. Here's the link: http://aspose.com/file-tools
subject: tomcat ZipException when starting up
It's not a secret anymore!