1 Reply Latest reply on Jan 20, 2007 10:40 AM by 807581

    Glassfish error on appication deploy

    807581
      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(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
      |#]

      any help would be appreciated.
        • 1. Re: Glassfish error on appication deploy
          807581
          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 !