7 Replies Latest reply on Apr 25, 2014 4:06 AM by Marco Rietveld

    jBPM 6.0.1 deployment failing in EAP 6.2

    sramjee Newbie

      Hello,

       

      I'm trying to deploy jBPM 6.0.1 war file into EAP 6.2 and it is failing almost in the end with the following ERROR message.

       

      4-7-2014 6-06-20 PM.gif

       

      During the deployment I could see that the jndi tree getting the jms destinations, etc.

       

      Any advice on how to debug it further will be appreciated.

       

       

      Thanks in advance.

        • 1. Re: jBPM 6.0.1 deployment failing in EAP 6.2
          Maciej Swiderski Master

          it might be that the deployment did not finish in given time like 60 sec by default, if that's the case you can extend the deployment timeout in standalone.xml. If that's not the case, please attach complete server log as there must be an error telling why the deployment failed.

           

          HTH

          • 2. Re: Re: jBPM 6.0.1 deployment failing in EAP 6.2
            sramjee Newbie

            Hi,

             

            It finishes fast and hence may not be the deployment timeout. I'm pasting the log.

             

            Regards,

            Srini

            • 3. Re: jBPM 6.0.1 deployment failing in EAP 6.2
              Marco Rietveld Novice

              We haven't tested kie-wb on EAP 6.2 yet: there's been lots of testing on 6.1.1.

               

              Could you lower the level of logging in the standalone-full.xml?

               

              You can do that by changing it so that it looks like this:

               

                      <root-logger>
                          <level name="DEBUG"/>
                          <handlers>
                              <handler name="CONSOLE"/>
                              <handler name="FILE"/>
                          </handlers>
                      </root-logger>

               

              The console logger will stay at the INFO level, but the file logger (which logs to <eap>/standalone/log/server.log) will log at level DEBUG.

               

              If you post that log, we might be able to figure out what the problem is.

              • 4. Re: jBPM 6.0.1 deployment failing in EAP 6.2
                sramjee Newbie

                Hi,

                 

                Here is one exception trace I noticed, could it be the issue?

                 

                Also based on your comment I will try in 6.1.1.

                 

                15:14:46,384 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."jbpm-console.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".WeldStartService: Failed to start service         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]         at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25] Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions: Exception 0 : org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.kie.workbench.backend.AppSetup.assertPlayground() on org.kie.workbench.backend.AppSetup@71c290ef         at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:405)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:178)         at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:298)         at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)         at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)         at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)         at org.kie.workbench.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(AppSetup$Proxy$_$$_WeldClientProxy.java)         at org.uberfire.commons.services.cdi.StartupBeanExtension.runPostConstruct(StartupBeanExtension.java:83)         at org.uberfire.commons.services.cdi.StartupBeanExtension.afterDeploymentValidation(StartupBeanExtension.java:67)         at org.uberfire.commons.services.cdi.StartupBeanExtension$Proxy$_$$_WeldClientProxy.afterDeploymentValidation(StartupBeanExtension$Proxy$_$$_WeldClientProxy.java)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:606)         at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)         at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)         at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)         at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)         at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164)         at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)         at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)         at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)         at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)         at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)         at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)         at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46)         at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)         at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:382)         at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:64)         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)         at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.reflect.InvocationTargetException         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:606)         at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)         at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)         at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)         at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)         at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:168)     at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:403)         ... 33 more Caused by: java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/apps/are/applications/jboss-as/servers/EDIDev/.index/write.lock         at org.uberfire.metadata.backend.lucene.setups.DirectoryLuceneSetup.(DirectoryLuceneSetup.java:78)         at org.uberfire.metadata.backend.lucene.setups.NIOLuceneSetup.(NIOLuceneSetup.java:31)         at org.kie.workbench.backend.ApplicationScopedProducer.(ApplicationScopedProducer.java:71)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)         at org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:206)         at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)         at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:340)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:204)         at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:296)         at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)         at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)         at org.jboss.weld.bean.AbstractReceiverBean.getReceiver(AbstractReceiverBean.java:77)         at org.jboss.weld.bean.AbstractProducerBean$AbstractProducer.produce(AbstractProducerBean.java:317)         at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:307)         at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)         at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)         at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:692)         at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136)         at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:777)         at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:786)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:165)         at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:161)         at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:135)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:157)         at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:297)         at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)         at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)         at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)         at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.bootstrapConfig(AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.java)         at org.kie.workbench.backend.AppSetup.assertPlayground(AppSetup.java:147)         ... 43 more Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/apps/are/applications/jboss-as/servers/EDIDev/.index/write.lock         at org.apache.lucene.store.Lock.obtain(Lock.java:84)         at org.apache.lucene.index.IndexWriter.(IndexWriter.java:602)         at org.uberfire.metadata.backend.lucene.setups.DirectoryLuceneSetup.(DirectoryLuceneSetup.java:76)         ... 76 more         at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:48)         at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)         at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:382)         at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:64)         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]         ... 3 more 15:14:46,626 ERROR [org.jboss.as.server] (host-controller-connection-threads - 3) JBAS015870: Deploy of deployment "jbpm-console.war" was rolled back with the following failure message: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpm-console.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-console.war\".WeldStartService: Failed to start service     Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions: Exception 0 : org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.kie.workbench.backend.AppSetup.assertPlayground() on org.kie.workbench.backend.AppSetup@71c290ef         at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:405)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:178)         at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:298)         at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)         at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)         at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)         at org.kie.workbench.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(AppSetup$Proxy$_$$_WeldClientProxy.java)         at org.uberfire.commons.services.cdi.StartupBeanExtension.runPostConstruct(StartupBeanExtension.java:83)         at org.uberfire.commons.services.cdi.StartupBeanExtension.afterDeploymentValidation(StartupBeanExtension.java:67)         at org.uberfire.commons.services.cdi.StartupBeanExtension$Proxy$_$$_WeldClientProxy.afterDeploymentValidation(StartupBeanExtension$Proxy$_$$_WeldClientProxy.java)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:606)         at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)         at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)         at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)         at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)         at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164)         at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)         at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)         at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)         at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)         at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)         at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)         at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46)         at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)         at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)         at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)         at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)         at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)         at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)         at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46)         at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)         at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:382)         at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:64)         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)         at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.reflect.InvocationTargetException         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:606)         at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)         at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)         at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)         at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)         at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:168)         at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:403)         ... 33 more Caused by: java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/apps/are/applications/jboss-as/servers/EDIDev/.index/write.lock         at org.uberfire.metadata.backend.lucene.setups.DirectoryLuceneSetup.(DirectoryLuceneSetup.java:78)         at org.uberfire.metadata.backend.lucene.setups.NIOLuceneSetup.(NIOLuceneSetup.java:31)         at org.kie.workbench.backend.ApplicationScopedProducer.(ApplicationScopedProducer.java:71)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)         at org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:206)         at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)         at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:340)         at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:204)         at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:296)         at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)         at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)         at org.jboss.weld.bean.AbstractReceiverBean.getReceiver(AbstractReceiverBean.java:77)         at org.jboss.weld.bean.AbstractProducerBean$AbstractProducer.produce(AbstractProducerBean.java:317)         at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:307)         at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)         at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)         at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:692)         at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136)         at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:777)

                 

                 

                Thanks,

                Srini

                • 5. Re: jBPM 6.0.1 deployment failing in EAP 6.2
                  Marco Rietveld Novice

                  Huh, that's an interesting stack trace.

                   

                  It kind of looks like there's a left over lock file from a previous run, or otherwise maybe that you have more than one server instance running at a time?

                   

                  I would double-check that..

                  • 6. Re: jBPM 6.0.1 deployment failing in EAP 6.2
                    sramjee Newbie

                    Marco,

                     

                    There you go. It was two servers in a group, and when I shutdown one of them and targetted the deployement it went through.

                     

                    If you could please share your thoughts on how to handle with multiple servers it will be great. I think I would need it for high availability.

                     

                    BWTN Sorry about that bad copy paste of the stack trace, still you helped me!!

                     

                    Thank you.

                    • 7. Re: jBPM 6.0.1 deployment failing in EAP 6.2
                      Marco Rietveld Novice

                      The line that alerted me to the problem is this one:

                       

                      ... 33 more Caused by: java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/apps/are/applications/jboss-as/servers/EDIDev/.index/write.lock

                       

                      Maybe it's possible to set up the server instances so that they don't share the same locations for lucene?