[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

AccessControlException



Hi all,

I have a problem that I don't know how to track.

I use a ant task from NetBeans.

The exact same code (from a cvs repository) on the following
environments compile perfectly fine :

- Debian GNU/Linux PowerPC + Blackdown JDK 1.3.0 (no deb package)
- Mac OSX 10.1.2 + Apple JDK 1.3.1

But on my Debain GNU/Linux i386 bax, I get the following error message
(of course, I run all this as user 'alci' and the directories belong to
'alci') :

compile:
Compiling 21 source files to /home/alci/devel/bdc/build/WEB-INF/classes
An exception has occurred in the compiler (1.3.1). Please file a bug at
the Java Developer Connection
(http://java.sun.com/cgi-bin/bugreport.cgi).  Include your program and
the following diagnostic in your report.  Thank you.
java.security.AccessControlException: access denied
(java.io.FilePermission /home/alci/devel/bdc/build/WEB-INF/classes/bdc
write)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
        at
java.security.AccessController.checkPermission(AccessController.java:399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at
org.netbeans.core.execution.TopSecurityManager.checkPermission(TopSecurityManager.java:243)
        at
java.lang.SecurityManager.checkWrite(SecurityManager.java:978)
        at
org.netbeans.core.execution.TopSecurityManager.checkWrite(TopSecurityManager.java:186)
        at java.io.File.mkdir(File.java:956)
        at
com.sun.tools.javac.v8.code.ClassWriter.outputFile(ClassWriter.java:717)
        at
com.sun.tools.javac.v8.code.ClassWriter.outputFile(ClassWriter.java:703)
        at
com.sun.tools.javac.v8.JavaCompiler.writeClass(JavaCompiler.java:311)
        at
com.sun.tools.javac.v8.JavaCompiler.genCode(JavaCompiler.java:303)
        at
com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:407)
        at com.sun.tools.javac.v8.Main.compile(Main.java:247)
        at com.sun.tools.javac.Main.compile(Main.java:26)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:92)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:557)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:277)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
build.xml [181] Compile failed, messages should have been provided.
BUILD FAILED
Total time: 6 seconds


Thank for any clue.

Franck Routier





Reply to: