6 Replies Latest reply on Aug 28, 2015 8:37 AM by Renaud Houssaye

    JBPM 6.2 Wildfly 8.1 rewards-basic application: errors in deployment

    franco80 Novice

      Hi all

       

      I'm trying to deploy example application rewards-basic from the site: https://github.com/jsvitak/jbpm-6-examples/tree/master/rewards-basic on Wildfly 8.1 and i'm reciving errors:

       

      12:02:20,311 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69) MSC000001: Failed to start service jboss.deployment.unit."rewards-basic.war".component.DeploymentSynchronizerEJBImpl.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."rewards-basic.war".component.DeploymentSynchronizerEJBImpl.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance

          at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_40]

          at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_40]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_40]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_40]

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance

          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:162) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:133) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:89) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122)

          at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:137)

          at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          ... 6 more

      Caused by: javax.ejb.EJBException: java.lang.RuntimeException: JBAS011875: Resource lookup for injection failed: env/org.jbpm.services.ejb.impl.store.DeploymentSynchronizerEJBImpl/commandService

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:190)

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:369)

          at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:160) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          ... 11 more

      Caused by: java.lang.RuntimeException: JBAS011875: Resource lookup for injection failed: env/org.jbpm.services.ejb.impl.store.DeploymentSynchronizerEJBImpl/commandService

          at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:313) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ee.component.ManagedReferenceMethodInjectionInterceptorFactory$ManagedReferenceMethodInjectionInterceptor.processInvocation(ManagedReferenceMethodInjectionInterceptorFactory.java:99) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.component.ManagedReferenceMethodInjectionInterceptorFactory$ManagedReferenceMethodInjectionInterceptor.processInvocation(ManagedReferenceMethodInjectionInterceptorFactory.java:113) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:109) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:93)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)

          ... 27 more

      Caused by: javax.naming.NameNotFoundException: env/org.jbpm.services.ejb.impl.store.DeploymentSynchronizerEJBImpl/commandService [Root exception is java.lang.IllegalStateException: JBAS011052: Failed to instantiate component view]

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:310) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          ... 44 more

      Caused by: java.lang.IllegalStateException: JBAS011052: Failed to instantiate component view

          at org.jboss.as.ee.component.ViewManagedReferenceFactory.getReference(ViewManagedReferenceFactory.java:58) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:131) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          ... 49 more

      Caused by: java.lang.IllegalStateException: Unable to find transaction: UserTransaction

          at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:139)

          at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:79)

          at org.jbpm.shared.services.impl.TransactionalCommandService.<init>(TransactionalCommandService.java:23)

          at org.jbpm.services.ejb.impl.tx.TransactionalCommandServiceEJBImpl.<init>(TransactionalCommandServiceEJBImpl.java:37)

          at org.jbpm.services.ejb.impl.tx.TransactionalCommandServiceEJBImpl$$$view2.<init>(Unknown Source)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_40]

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_40]

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_40]

          at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [rt.jar:1.8.0_40]

          at java.lang.Class.newInstance(Class.java:442) [rt.jar:1.8.0_40]

          at org.jboss.invocation.proxy.AbstractClassFactory.newInstance(AbstractClassFactory.java:225) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.invocation.proxy.ProxyFactory.newInstance(ProxyFactory.java:270) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]

          at org.jboss.as.ee.component.ViewService$DefaultViewInstanceFactory.createViewInstance(ViewService.java:271) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ee.component.ViewService$View.createInstance(ViewService.java:177) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ee.component.ViewService$View.createInstance(ViewService.java:173) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.ee.component.ViewManagedReferenceFactory.getReference(ViewManagedReferenceFactory.java:56) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

          ... 50 more

      Caused by: javax.naming.NameNotFoundException: UserTransaction [Root exception is java.lang.IllegalStateException: JBAS014237: Only session and message-driven beans with bean-managed transaction demarcation are allowed to access UserTransaction]

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:235) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

          at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_40]

          at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_40]

          at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:131)

          ... 65 more

      Caused by: java.lang.IllegalStateException: JBAS014237: Only session and message-driven beans with bean-managed transaction demarcation are allowed to access UserTransaction

          at org.jboss.as.ejb3.component.allowedmethods.AllowedMethodsInformation.realCheckPermission(AllowedMethodsInformation.java:138)

          at org.jboss.as.ejb3.component.allowedmethods.AllowedMethodsInformation.checkAllowed(AllowedMethodsInformation.java:112)

          at org.jboss.as.ejb3.subsystem.EJB3UserTransactionAccessControlService$1.authorizeAccess(EJB3UserTransactionAccessControlService.java:53)

          at org.jboss.as.txn.service.UserTransactionAccessControlService.authorizeAccess(UserTransactionAccessControlService.java:83)

          at org.jboss.as.txn.service.UserTransactionBindingService$1.getReference(UserTransactionBindingService.java:71)

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:131) [wildfly-naming-8.1.0.Final.jar:8.1.0.Final]

       

      What could be the reason for these errors ? I tried to change configuration in persistence.xml before or other stuff on the class StartBean using:

       

      @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) or @TransactionManagement(TransactionManagementType.BEAN) or @Resource  private UserTransaction ut and still the same problem

       

      Service ejb DeploymentSynchronizerEJBImpl is deployed at the beginning.

       

      thanks