Maven rest commands (deploy, test, compile) do not work. Server throws exception.
Server log:
12:28:26,677 ERROR [org.guvnor.rest.backend.cmd.AbstractJobCommand] (testadmin) DeployProjectRequest [1507631306676-10] failed because of thrown ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:689)
at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:90)
at org.jboss.weld.bean.ContextualInstanceStrategy$CachingContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:165)
at org.jboss.weld.bean.ContextualInstance.getIfExists(ContextualInstance.java:63)
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:83)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)
at org.uberfire.rpc.SessionInfo$1143114360$Proxy$_$$_WeldClientProxy.getIdentity(Unknown Source)
at org.guvnor.structure.backend.organizationalunit.OrganizationalUnitServiceImpl.getOrganizationalUnits(OrganizationalUnitServiceImpl.java:126)
at org.guvnor.structure.backend.organizationalunit.OrganizationalUnitServiceImpl$Proxy$_$$_WeldClientProxy.getOrganizationalUnits(Unknown Source)
at org.guvnor.common.services.project.backend.server.ProjectServiceImpl.getAllProjects(ProjectServiceImpl.java:77)
at org.guvnor.common.services.project.backend.server.ProjectServiceImpl.resolveProject(ProjectServiceImpl.java:155)
at org.guvnor.rest.backend.JobRequestHelper.deployProject(JobRequestHelper.java:381)
at org.guvnor.rest.backend.JobRequestHelper$Proxy$_$$_WeldClientProxy.deployProject(Unknown Source)
at org.guvnor.rest.backend.cmd.DeployProjectCmd.internalExecute(DeployProjectCmd.java:44)
at org.guvnor.rest.backend.cmd.AbstractJobCommand.run(AbstractJobCommand.java:93)
at org.uberfire.backend.server.cdi.workspace.WorkspaceExecutorService.lambda$generateRunnable$0(WorkspaceExecutorService.java:135)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)