2 Replies Latest reply on Aug 29, 2016 5:19 AM by Mitesh Kothari

    New to Wildfly deployment and getting error in custom war deployment

    Mitesh Kothari Newbie

      Getting following error while war deployment

       

       

      "{

       

      \"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\\\"EventHandler.war\\\".INSTALL\" => \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"EventHandler.war\\\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \\\"HMEventHandler.war\\\"

       

      Caused by: java.security.AccessControlException: access denied (\\\"org.jboss.as.server.security.ServerPermission\\\" \\\"useServiceRegistry\\\")\"},

       

      \"WFLYCTL0180: Services with missing/unavailable dependencies\" => [

       

      \"jboss.deployment.unit.\\\"EventHandler.war\\\".batch.environment is missing [jboss.deployment.unit.\\\"EventHandler.war\\\".beanmanager]\",

       

      \"jboss.deployment.unit.\\\"EventHandler.war\\\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\\\"EventHandler.war\\\".beanmanager]\"

       

      ]

       

      }"

       

       

      as per below thread also tried to add dependency, but no success.

       

      https://developer.jboss.org/thread/258292?start=0&tstart=0

       

      also following error in logs.

       

      MSC service thread 1-2 2016-08-28 15:41:24,167 | INFO  | session=       | user=           | com.artesia.server.ha.singleton.ActivatorHelperFactory | Assuming the app server to be Community.

      MSC service thread 1-2 2016-08-28 15:41:24,170 | ERROR | session=       | user=           | org.jboss.msc.service.fail | MSC000001: Failed to start service jboss.deployment.unit."HMEventHandler.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."HMEventHandler.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "HMEventHandler.war"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:745)

      Caused by: java.security.AccessControlException: access denied ("org.jboss.as.server.security.ServerPermission" "useServiceRegistry")

      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)

      at java.security.AccessController.checkPermission(AccessController.java:884)

      at org.jboss.as.server.deployment.service.SecuredServiceRegistry.getRequiredService(SecuredServiceRegistry.java:33)

      at com.artesia.server.ha.singleton.CommunityActivatorHelper.activate(CommunityActivatorHelper.java:34)

      at com.artesia.server.ha.singleton.OTMMSingletonServiceActivator.activate(OTMMSingletonServiceActivator.java:33)

      at org.jboss.as.server.deployment.service.ServiceActivatorProcessor.deploy(ServiceActivatorProcessor.java:74)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)

      ... 5 more