ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From otisg <ot...@ureach.com>
Subject Re: java.util.zip.ZipException: Permission denied
Date Fri, 12 Jul 2002 15:43:32 GMT
I found it.
It was one of my jar files whose owner was
root, and for which no other users had read
rights. 

Otis

---- On Fri, 12 Jul 2002, otisg
(otisg@ureach.com) wrote:

> Hello,
> 
> I am getting a weird "Permission denied"
> problem when I execute Ant.
> 
> $ ant -version
> Apache Ant version 1.5 compiled on July 10
2002
> 
> Here is the error.
> Note that b.xml file is really empty.  It's
> only got <project ....></project> in it.  No
> properties, no targets, etc.
> 
> $ ant -f b.xml -projecthelp
> Buildfile: b.xml
> java.util.zip.ZipException: Permission denied
> 	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:138)
> 	at
java.util.jar.JarFile.<init>(JarFile.java:80)
> 	at
>
sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:526)
> 	at
>
sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:491)
> 	at
>
sun.misc.URLClassPath$2.run(URLClassPath.java:287)
> 	at
>
java.security.AccessController.doPrivileged(Native
> Method)
> 	at
>
sun.misc.URLClassPath.getLoader(URLClassPath.java:276)
> 	at
>
sun.misc.URLClassPath.getLoader(URLClassPath.java:249)
> 	at
>
sun.misc.URLClassPath.getResource(URLClassPath.java:162)
> 	at
>
java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:675)
> 	at
>
java.security.AccessController.doPrivileged(Native
> Method)
> 	at
>
java.net.URLClassLoader.findClass(URLClassLoader.java:238)
> 	at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:513)
> 	at
>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:441)
> 	at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:445)
> 	at java.lang.Class.forName1(Native Method)
> 	at java.lang.Class.forName(Class.java:142)
> 	at
>
org.apache.tools.ant.util.JavaEnvUtils.<clinit>(JavaEnvUtils.java:125)
> 	at
>
org.apache.tools.ant.Main.runBuild(Main.java:567)
> 	at
org.apache.tools.ant.Main.start(Main.java:196)
> 	at
org.apache.tools.ant.Main.main(Main.java:235)
> Main targets:
> 
> 
> Subtargets:
> 
> 
> Default target: info
> 
> 
> 
> I suspect some Ant is trying to open some
> JAR or ZIP file, but I can't figure out
> which one.
> I tried using strace command, to figure that
> out, but the only suspicious call I saw was
> a call that tried to open
> '/usr/local/jdk/lib/classes.zip', which does
> not exist (JDK 1.3.1 doesn't have that file).
> 
> Does anyone know what is going on?
> 
> Thanks,
> Otis
> 
> 
>
________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> --
> To unsubscribe, e-mail:  
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message