JDK-6392600 : jdk1.6: AccessControl exception
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8.2ee
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: x86
  • Submitted: 2006-03-01
  • Updated: 2010-08-19
  • Resolved: 2006-03-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Description
jdk1.6 build : b73 from the following location
/net/koori/onestop/jdk/1.6.0/promoted/beta2/b73/bundles/

Platforms :Solaris10 Sparc,Windows2000AdvancedServer.
To reproduce:
Install jdk1.6 build73.

install AS8.EE Applciation server build10 from the following location.During jdk configuration,choose option"use existing jdk" and give the jdk1.6 path

solaris:
/net/koori/onestop/sjsas_ee/8.2/promoted/fcs/b10/bundles/sjsas_ee-8_2-solaris-sparc.bin
windows:
/net/koori/onestop/sjsas_ee/8.2/promoted/fcs/b10/bundles/sjsas_ee-8_2-windows.exe


Pls make sure AS_JAVA variable in $AS_INSTALL_DIR/config/asenv.conf(asenv.bat) points to 
jdk1.6

start the domain1:
$AS_INSTALL_DIR/bin/asadmin start-domain --user admin domain1

pls use the attached ear file to deploy.

$AS_INSTALL_DIR/bin/asadmin  deploy --user admin --password adminadmin /tmp/CMPEB.ear

pls see the server.log for more details on the exception.
$AS_INSTALL_DIR/domains/domain1/logs/server.log.

bash-3.00# /space2/vivek/as/bin/asadmin  deploy --user admin --password adminadmin /space2/vivek/appserver-sqe/ee/as7/file-repository/Apps/failover/ejbref/CMP/CMPEB.ear 
WARNING: The --password option is insecure and should not be used since it can compromise your password.  Please use either the command prompt or the --passwordfile option.
CLI171 Command deploy failed : Deploying application in domain  failed; Fatal Error from EJB Compiler -- Compilation failed: Native compiler returned an error: 4
Error messages are: An exception has occurred in the compiler (1.6.0-beta2). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:321)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
        at java.lang.ClassLoader.<init>(ClassLoader.java:225)
        at java.security.SecureClassLoader.<init>(SecureClassLoader.java:76)
        at java.net.URLClassLoader.<init>(URLClassLoader.java:113)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcessorIterator(JavacProcessingEnvironment.java:181)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(JavacProcessingEnvironment.java:111)
        at com.sun.tools.javac.main.JavaCompiler.initProcessAnnotations(JavaCompiler.java:769)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:625)
        at com.sun.tools.javac.main.Main.compile(Main.java:761)
        at com.sun.tools.javac.main.Main.compile(Main.java:686)
        at com.sun.tools.javac.main.Main.compile(Main.java:675)
        at com.sun.tools.javac.Main.compile(Main.java:88)
        at com.sun.ejb.codegen.JavaCompiler.javacCompile(JavaCompiler.java:135)
        at com.sun.ejb.codegen.JavaCompiler.internal_compile(JavaCompiler.java:60)
        at com.sun.ejb.codegen.Compiler.compile(Compiler.java:57)
        at com.sun.ejb.codegen.IASEJBC.compileClasses(IASEJBC.java:293)
        at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:230)
        at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:615)
        at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
        at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:340)
        at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:209)
        at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:310)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:177)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:107)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:148)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:639)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:188)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:520)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:139)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:168)

; requested operation cannot be completed

Comments
EVALUATION This is a duplicate of 6348193; see that bug for workarounds until the fix is provided.
02-03-2006