You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cindy Ballreich <ci...@ballreich.net> on 2002/02/16 00:28:56 UTC

java.util.zip.ZipException: Permission denied

Can anyone tell me why I would be getting a "java.util.zip.ZipException:
Permission denied" error in catalina.out? (The entire error is at the
bottom of this e-mail.) This seems to be the last things that happens when
tomcat starts.

I'm also getting some similar errors in my application's log file that seem
to relate to the jar files that contain the classes for the taglibs.
However, right after those error messages, there are messages suggesting
that the jars have been successully read. These messages have been
appearing for some time while the exception in catalina.out is new so there
may be no relationship between them. 

Any thoughts would be greatly appreciated.

Cindy

(I'm using Tomcat 4.0.1 with Apache 1.3.19 and Blackdown j2sdk1.3.1 on
RedHat 7.0)


>From catalina.out...

java.util.zip.ZipException: Permission denied
        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)
        at
org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:991)
        at
org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:628)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3334)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Starting service Tomcat-Apache
Apache Tomcat/4.0.1


>From my application log...

2002-02-15 15:13:08 ContextConfig[/applications]: Scanning web.xml tag
libraries
2002-02-15 15:13:08 ContextConfig[/applications]:   URI='/mpitaglib',
ResourcePath='/WEB-INF/tlds/mpitaglib_1_0.tld'
2002-02-15 15:13:08 ContextConfig[/applications]:
tldConfigJar(/WEB-INF/tlds/mpitaglib_1_0.tld): java.util.zip.ZipException:
error in opening zip file
2002-02-15 15:13:08 ContextConfig[/applications]:   URI='/orataglib',
ResourcePath='/WEB-INF/tlds/orataglib_1_0_3.tld'
2002-02-15 15:13:08 ContextConfig[/applications]:
tldConfigJar(/WEB-INF/tlds/orataglib_1_0_3.tld):
java.util.zip.ZipException: error in opening zip file
2002-02-15 15:13:08 ContextConfig[/applications]: Scanning library JAR files
2002-02-15 15:13:08 ContextConfig[/applications]:
tldConfigJar(/WEB-INF/lib/multigen.jar): Processing entry
'META-INF/taglib.tld'
2002-02-15 15:13:08 ContextConfig[/applications]:
tldConfigJar(/WEB-INF/lib/orataglib_1_0_3.jar): Processing entry
'META-INF/taglib.tld'



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: java.util.zip.ZipException: Permission denied

Posted by Cindy Ballreich <ci...@ballreich.net>.
At 03:38 PM 2/15/02 -0800, Craig R. McClanahan wrote:
>
>Normally, a "permission denied" message like this would imply that
>operating system permissions are not set correctly.  I've never tried
>Tomcat with the Blackdown JDK, so there could also be a bug in the way
>Blackdown implements JAR file reading (which uses ZipFile classes inside).
>Could you try this with some other JDK to see if the problem goes away?
>
>Craig

That was my first thought. I recently started using jdk1.3.1_02 from Sun
and I was thinking that this change might have been the cause. I changed
back to the Blackdown jdk and the results are identical.

By the way, these errors don't seem to be interfering with the functionaing
of the application I'm working on, if that's of any interest.

Thanks

Cindy

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: java.util.zip.ZipException: Permission denied

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Fri, 15 Feb 2002, Cindy Ballreich wrote:

> Date: Fri, 15 Feb 2002 15:28:56 -0800
> From: Cindy Ballreich <ci...@ballreich.net>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: java.util.zip.ZipException: Permission denied
>
>
> Can anyone tell me why I would be getting a "java.util.zip.ZipException:
> Permission denied" error in catalina.out? (The entire error is at the
> bottom of this e-mail.) This seems to be the last things that happens when
> tomcat starts.
>
> I'm also getting some similar errors in my application's log file that seem
> to relate to the jar files that contain the classes for the taglibs.
> However, right after those error messages, there are messages suggesting
> that the jars have been successully read. These messages have been
> appearing for some time while the exception in catalina.out is new so there
> may be no relationship between them.
>
> Any thoughts would be greatly appreciated.
>
> Cindy
>
> (I'm using Tomcat 4.0.1 with Apache 1.3.19 and Blackdown j2sdk1.3.1 on
> RedHat 7.0)
>

Normally, a "permission denied" message like this would imply that
operating system permissions are not set correctly.  I've never tried
Tomcat with the Blackdown JDK, so there could also be a bug in the way
Blackdown implements JAR file reading (which uses ZipFile classes inside).
Could you try this with some other JDK to see if the problem goes away?

Craig


>
> >From catalina.out...
>
> java.util.zip.ZipException: Permission denied
>         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)
>         at
> org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:991)
>         at
> org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:628)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3334)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:155)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
>         at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.1
>
>
> >From my application log...
>
> 2002-02-15 15:13:08 ContextConfig[/applications]: Scanning web.xml tag
> libraries
> 2002-02-15 15:13:08 ContextConfig[/applications]:   URI='/mpitaglib',
> ResourcePath='/WEB-INF/tlds/mpitaglib_1_0.tld'
> 2002-02-15 15:13:08 ContextConfig[/applications]:
> tldConfigJar(/WEB-INF/tlds/mpitaglib_1_0.tld): java.util.zip.ZipException:
> error in opening zip file
> 2002-02-15 15:13:08 ContextConfig[/applications]:   URI='/orataglib',
> ResourcePath='/WEB-INF/tlds/orataglib_1_0_3.tld'
> 2002-02-15 15:13:08 ContextConfig[/applications]:
> tldConfigJar(/WEB-INF/tlds/orataglib_1_0_3.tld):
> java.util.zip.ZipException: error in opening zip file
> 2002-02-15 15:13:08 ContextConfig[/applications]: Scanning library JAR files
> 2002-02-15 15:13:08 ContextConfig[/applications]:
> tldConfigJar(/WEB-INF/lib/multigen.jar): Processing entry
> 'META-INF/taglib.tld'
> 2002-02-15 15:13:08 ContextConfig[/applications]:
> tldConfigJar(/WEB-INF/lib/orataglib_1_0_3.jar): Processing entry
> 'META-INF/taglib.tld'
>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>