2 Replies Latest reply on Jan 22, 2011 9:24 AM by Abhishek Bhargava

    Problem starting JBOSS 5.0.1.GA EJB3 - Property javax.security.jacc.PolicyConfigurationFactory.provider not set

    Abhishek Bhargava Newbie

      Hello Everyone,

              I have just downloaded JBoss 5.0.1.GA for running EJB3 based application. I already set the JBOSS_HOME as well as JAVA_HOME.

      When I run it from console for the first time I got JVM_Bind exception, so I changed the port from default 8080 to 8090( by making changes in server.xml located at "jboss-5.0.1.GA\server\default\deploy\jbossweb.sar" ), which solved that problem.

      But now I am getting :-

      Caused by: java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

      Detailed stacktrace as shown below :-

       

       

      ERROR [AbstractKernelController] Error installing to Create: name=jboss.jacc:id="vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ROOT.war/",service=jacc state=Configured mode=Manual requiredState=Create

      java.lang.RuntimeException: java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

          at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:87)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

          at $Proxy36.create(Unknown Source)

          at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42)

          at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:37)

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

          at org.jboss.system.ServiceController.create(ServiceController.java:422)

          at org.jboss.system.ServiceController.create(ServiceController.java:387)

          at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:158)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:96)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

          at org.jboss.Main.boot(Main.java:209)

          at org.jboss.Main$1.run(Main.java:547)

          at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

          at javax.security.jacc.PolicyConfigurationFactory$1.run(PolicyConfigurationFactory.java:84)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:78)

          at org.jboss.deployment.security.JaccPolicy.createPolicyConfiguration(JaccPolicy.java:187)

          at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:83)

          ... 52 more

      17:46:20,375 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ROOT.war/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jacc:service=jacc,id="vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ROOT.war/"

          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

          at org.jboss.Main.boot(Main.java:209)

          at org.jboss.Main$1.run(Main.java:547)

          at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

          at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:87)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

          at $Proxy36.create(Unknown Source)

          at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42)

          at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:37)

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

          at org.jboss.system.ServiceController.create(ServiceController.java:422)

          at org.jboss.system.ServiceController.create(ServiceController.java:387)

          at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:158)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:96)

          ... 23 more

      Caused by: java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

          at javax.security.jacc.PolicyConfigurationFactory$1.run(PolicyConfigurationFactory.java:84)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:78)

          at org.jboss.deployment.security.JaccPolicy.createPolicyConfiguration(JaccPolicy.java:187)

          at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:83)

          ... 52 more

       

      17:46:21,562 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      DEPLOYMENTS IN ERROR:

        Deployment "vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/http-invoker.sar/" is in error due to the following reason(s): java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

        Deployment "vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/management/console-mgr.sar/" is in error due to the following reason(s): java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

        Deployment "vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ROOT.war/" is in error due to the following reason(s): java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

        Deployment "vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/" is in error due to the following reason(s): java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

        Deployment "vfsfile:/E:/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jbossws.sar/" is in error due to the following reason(s): java.lang.ClassNotFoundException: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

       

      17:46:21,593 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8090

      17:46:21,640 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

      17:46:21,640 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 42s:515ms

       


      So, please suggests, what should I do to resolve this error.

      Thanks in advance.

       

      Regards,

      Abhishek