java.lang.RuntimeException

javax.security.jacc.PolicyContextException: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl

Samebug tips10

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web15876

  • via Oracle Community by 807581, 1 year ago
    javax.security.jacc.PolicyContextException: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
  • via solutionscore.com by Unknown author, 1 year ago
    java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null
  • via Coderanch by uttam kumar, 7 months ago
    java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null
  • Stack trace

    • java.lang.RuntimeException: javax.security.jacc.PolicyContextException: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl at com.sun.web.security.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:86) at com.sun.enterprise.web.WebContainer.configureSecurity(WebContainer.java:1495) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1431) at com.sun.enterprise.web.WebContainer.loadStandaloneWebModule(WebContainer.java:963) at com.sun.enterprise.web.WebContainer.loadDefaultWebModule(WebContainer.java:929) at com.sun.enterprise.web.WebContainer.loadWebModules(WebContainer.java:895) at com.sun.enterprise.web.WebContainer.start(WebContainer.java:765) at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722) at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72) at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:266) at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:210) at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60) at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180) at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:177) at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45) at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72) at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:62) at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generatePortEntryContext(ServerEntryHelper.java:43) at com.sun.enterprise.server.ss.ASSocketService.generateEntryContext(ASSocketService.java:279) at com.sun.enterprise.server.ss.ASSocketService$EntryPointThread.run(ASSocketService.java:525) Caused by: javax.security.jacc.PolicyContextException: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl at com.sun.web.security.WebSecurityManager.getFactory(WebSecurityManager.java:340) at com.sun.web.security.WebSecurityManager.initialise(WebSecurityManager.java:230) at com.sun.web.security.WebSecurityManager.<init>(WebSecurityManager.java:156) at com.sun.web.security.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:83) ... 20 more Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:143) at com.sun.web.security.WebSecurityManager.getFactory(WebSecurityManager.java:337) ... 23 more Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:131) ... 24 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    27 times, 12 hours ago
    Once, 2 days ago
    30 times, 6 days ago
    Once, 1 week ago
    Once, 3 weeks ago
    1386 more bugmates