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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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}

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

Solutions on the web

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
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 com.sun.web.security.WebSecurityManager.getFactory(WebSecurityManager.java:337)
at com.sun.web.security.WebSecurityManager.initialise(WebSecurityManager.java:230)
at com.sun.web.security.WebSecurityManager.(WebSecurityManager.java:156)
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.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 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)

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 2 months ago
Once, 2 months ago
5 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.