2 Replies Latest reply on Dec 13, 2018 11:24 AM by balesh koijam

    Deployment of business central war failed in Jboss EAP 7

    balesh koijam Newbie

      Jboss version : Red Hat JBoss Enterprise Application Platform - Version 7.0.0.GA

      Business Central war version :  business-central-7.15.0.Final-eap7.war

       

      jboss is available under the location : C:\ProgramData\development\jboss-eap-7.0

       

      JBOSS server was started successfully and I tried deploying the business central war file by copying the war file to : standalone\deployments folder.

       

       

       

       

       

      deployment failed after a few minutes with the below exception on the console:

       

      16:01:36,177 ERROR [stderr] (MSC service thread 1-4) org.uberfire.java.nio.IOException: org.eclipse.jgit.api.errors.JGitInternalException: Creating directories for C:\windows\System32\.niogit\system\system.git failed

      16:01:36,178 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.util.commands.CreateRepository.execute(CreateRepository.java:102)

      16:01:36,182 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.util.Git.createRepository(Git.java:69)

      16:01:36,183 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.createNewGitRepo(JGitFileSystemProvider.java:682)

      16:01:36,185 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.lambda$newFileSystem$2(JGitFileSystemProvider.java:536)

      16:01:36,187 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.manager.JGitFileSystemsManager.lambda$createFileSystemSupplier$0(JGitFileSystemsManager.java:114)

      16:01:36,188 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.manager.MemoizedFileSystemsSupplier.lambda$get$0(MemoizedFileSystemsSupplier.java:36)

      16:01:36,194 ERROR [stderr] (MSC service thread 1-4)    at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)

      16:01:36,196 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.manager.MemoizedFileSystemsSupplier.get(MemoizedFileSystemsSupplier.java:35)

      16:01:36,197 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProxy.getGit(JGitFileSystemProxy.java:58)

      16:01:36,198 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.newOutputStream(JGitFileSystemProvider.java:908)

      16:01:36,199 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.newFileSystem(JGitFileSystemProvider.java:555)

      16:01:36,200 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:122)

      16:01:36,202 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:78)

      16:01:36,212 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:231)

      16:01:36,217 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.backend.server.cdi.SystemConfigProducer$1.create(SystemConfigProducer.java:293)

      16:01:36,221 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.backend.server.cdi.SystemConfigProducer$1.create(SystemConfigProducer.java:224)

      16:01:36,222 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)

      16:01:36,227 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)

      16:01:36,229 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)

      16:01:36,230 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)

      16:01:36,232 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)

      16:01:36,233 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.file.FileSystem$LockableFileSystem$1366014920$Proxy$_$$_WeldClientProxy.getRootDirectories(Unknown Source)

      16:01:36,234 ERROR [stderr] (MSC service thread 1-4)    at org.guvnor.structure.backend.config.ConfigurationServiceImpl.setup(ConfigurationServiceImpl.java:128)

      16:01:36,235 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:01:36,237 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      16:01:36,245 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      16:01:36,247 ERROR [stderr] (MSC service thread 1-4)    at java.lang.reflect.Method.invoke(Method.java:498)

      16:01:36,248 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98)

      16:01:36,250 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)

      16:01:36,251 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)

      16:01:36,266 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162)

      16:01:36,268 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)

      16:01:36,270 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)

      16:01:36,273 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141)

      16:01:36,274 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)

      16:01:36,279 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)

      16:01:36,280 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)

      16:01:36,282 ERROR [stderr] (MSC service thread 1-4)    at org.guvnor.structure.backend.config.ConfigurationServiceImpl$Proxy$_$$_WeldClientProxy.startBatch(Unknown Source)

      16:01:36,284 ERROR [stderr] (MSC service thread 1-4)    at org.kie.bc.backend.AppSetup.init(AppSetup.java:74)

      16:01:36,285 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:01:36,296 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      16:01:36,299 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      16:01:36,302 ERROR [stderr] (MSC service thread 1-4)    at java.lang.reflect.Method.invoke(Method.java:498)

      16:01:36,313 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98)

      16:01:36,315 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)

      16:01:36,317 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)

      16:01:36,318 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171)

      16:01:36,322 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)

      16:01:36,325 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)

      16:01:36,326 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141)

      16:01:36,327 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)

      16:01:36,329 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)

      16:01:36,329 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)

      16:01:36,330 ERROR [stderr] (MSC service thread 1-4)    at org.kie.bc.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(Unknown Source)

      16:01:36,331 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.backend.server.cdi.SystemConfigProducer.runPostConstruct(SystemConfigProducer.java:165)

      16:01:36,332 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.backend.server.cdi.SystemConfigProducer.afterDeploymentValidation(SystemConfigProducer.java:146)

      16:01:36,333 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:01:36,333 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      16:01:36,339 ERROR [stderr] (MSC service thread 1-4)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      16:01:36,340 ERROR [stderr] (MSC service thread 1-4)    at java.lang.reflect.Method.invoke(Method.java:498)

      16:01:36,341 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)

      16:01:36,344 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)

      16:01:36,346 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309)

      16:01:36,350 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)

      16:01:36,355 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287)

      16:01:36,356 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265)

      16:01:36,357 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)

      16:01:36,358 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)

      16:01:36,359 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)

      16:01:36,360 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)

      16:01:36,361 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)

      16:01:36,369 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)

      16:01:36,370 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)

      16:01:36,372 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:449)

      16:01:36,373 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)

      16:01:36,379 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:96)

      16:01:36,380 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      16:01:36,382 ERROR [stderr] (MSC service thread 1-4)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      16:01:36,396 ERROR [stderr] (MSC service thread 1-4)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      16:01:36,397 ERROR [stderr] (MSC service thread 1-4)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      16:01:36,398 ERROR [stderr] (MSC service thread 1-4)    at java.lang.Thread.run(Thread.java:748)

      16:01:36,401 ERROR [stderr] (MSC service thread 1-4) Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Creating directories for C:\windows\System32\.niogit\system\system.git failed

      16:01:36,402 ERROR [stderr] (MSC service thread 1-4)    at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:119)

      16:01:36,403 ERROR [stderr] (MSC service thread 1-4)    at org.uberfire.java.nio.fs.jgit.util.commands.CreateRepository.execute(CreateRepository.java:59)

      16:01:36,404 ERROR [stderr] (MSC service thread 1-4)    ... 80 more

      16:01:36,410 ERROR [stderr] (MSC service thread 1-4) Caused by: java.io.IOException: Creating directories for C:\windows\System32\.niogit\system\system.git failed

      16:01:36,412 ERROR [stderr] (MSC service thread 1-4)    at org.eclipse.jgit.util.FileUtils.mkdirs(FileUtils.java:371)

      16:01:36,413 ERROR [stderr] (MSC service thread 1-4)    at org.eclipse.jgit.internal.storage.file.FileRepository.create(FileRepository.java:298)

      16:01:36,419 ERROR [stderr] (MSC service thread 1-4)    at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:116)

      16:01:36,423 ERROR [stderr] (MSC service thread 1-4)    ... 81 more

      16:01:36,424 INFO  [org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider] (MSC service thread 1-4) Repository initialization may have failed.: org.uberfire.java.nio.IOException: org.eclipse.jgit.api.errors.JGitInternalException: Creating directories for C:\windows\System32\.niogit\system\system.git failed

       

       

       

       

      Could anyone suggest how can this be resolved.

      Thanks in advance

      Balesh

        • 1. Re: Deployment of business central war failed in Jboss EAP 7
          Tomaz Cerar Master

          user you are running the server with doesn't have permissions to create folders in C:\windows\System32

          which is no surprise as that is system protected folder. Is there any special reason why application needs to write there?

          • 2. Re: Deployment of business central war failed in Jboss EAP 7
            balesh koijam Newbie

            looks like its due to location where my jboss was installed. I now moved to some location where I have the write acess and it seems to resolve the Exception that was showing.

             

            However I faced another exception which failed the deployment. below is the new exception :

             

            ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."business-central-7.15.0.Final-eap7.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."business-central-7.15.0.Final-eap7.war".WeldStartService: Failed to start service

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

                    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)

            Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:

            Exception 0 :

            org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.jbpm.workbench.ks.integration.KieServerQueryDefinitionLoader.init() on org.jbpm.workbench.ks.integration.KieServerQueryDefinitionLoader@1081a0c3

                    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)

                    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)

                    at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)

                    at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171)

                    at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)

                    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)

                    at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141)

                    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)

                    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)

                    at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)

                    at org.jbpm.workbench.ks.integration.KieServerQueryDefinitionLoader$Proxy$_$$_WeldClientProxy.toString(Unknown Source)

                    at org.uberfire.backend.server.cdi.SystemConfigProducer.runPostConstruct(SystemConfigProducer.java:165)

                    at org.uberfire.backend.server.cdi.SystemConfigProducer.afterDeploymentValidation(SystemConfigProducer.java:150)

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

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:498)

                    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)

                    at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)

                    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309)

                    at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)

                    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287)

                    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265)

                    at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)

                    at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)

                    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)

                    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)

                    at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)

                    at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)

                    at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)

                    at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:449)

                    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)

                    at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:96)

                    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:1149)

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

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

            Caused by: java.lang.reflect.InvocationTargetException

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

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:498)

                    at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98)