Glassfish error on appication deploy

When I start glass fish I get the following error in the log.

436662;|WEB0120: Cannot load policy file.

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(WebSecurit yManagerFactory.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:9 63)

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(PEWebContainerLifecycl e.java:72)

at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceG roup.java:266)

at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebSe rviceGroup.java:210)

at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:6 0)

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(ServerEn tryListenerImpl.java:72)

at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntr yHelper.java:62)

at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generatePortEntryCon text(ServerEntryHelper.java:43)

at com.sun.enterprise.server.ss.ASSocketService.generateEntryContext(ASSocketServi ce.java:279)

at com.sun.enterprise.server.ss.ASSocketService$EntryPointThread.run(ASSocketServi ce.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:15 6)

at com.sun.web.security.WebSecurityManagerFactory.newWebSecurityManager(WebSecurit yManagerFactory.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(Po licyConfigurationFactory.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(Po licyConfigurationFactory.java:131)

... 24 more

|#]

any help would be appreciated.

[4268 byte] By [dsal3034] at [2007-11-26 8:59:36]
# 1

I had the same problem but when deploying a Web Application to the Sun Java System Application Server (SJSAS) in NetBeans. Now I'm readind the SJSAS Administration Guide which I've found at http://docs.sun.com/app/docs/doc/819-2554/6n4r8s7qm?a=view; but I already know that the matter is to create and configure a JACC Provider; so I invite you to get this doc for I hope it could help you. Almost I could write you back evrytime if I find further informations about this problem. I wish you Courage.

See you !

javahora at 2007-7-6 23:03:11 > top of Java-index,Application & Integration Servers,Application Servers...