1 2 3 4 Previous Next 47 Replies Latest reply on Aug 23, 2016 4:52 AM by tomjenkinson Go to original post
      • 30. Re: CDI BeanManager cannot find an instance of requested type
        tomjenkinson

        I reviewed the PR - sorry for the delay!

        • 31. Re: CDI BeanManager cannot find an instance of requested type
          gytis

          manuel_uberti, I've merged the fix. Update was needed both for Narayana and WildFly, so you might have to wait for the next WildFly release. However, if you want to try it feel free to build our master brach [1] and 5_BRACH which tracks WildFly master [2] with our latest changes on top.

           

          [1] https://github.com/jbosstm/narayana

          [2] GitHub - jbosstm/jboss-as: JBoss Application Server

          • 32. Re: CDI BeanManager cannot find an instance of requested type
            manuel_uberti

            Is there any chance the fix will get into the next Narayana standalone version? Just so I can use it from there in our WildFly.

            • 33. Re: CDI BeanManager cannot find an instance of requested type
              gytis

              Once the Narayana 5.3.4.Final is released, you will be able to use it. But you will still have to patch your WildFly to add Weld SPI dependency to the transactions module.

              • 34. Re: CDI BeanManager cannot find an instance of requested type
                manuel_uberti

                Great, thank you very much gytis for helping me on this.

                • 35. Re: CDI BeanManager cannot find an instance of requested type
                  gytis

                  No worries.

                  Feel free to put your opinion and thoughts about the API in the forum once you start trying it out. It's still in the development stages and we're looking for all possible feedback from the community.

                  • 36. Re: CDI BeanManager cannot find an instance of requested type
                    manuel_uberti

                    gytis: if you don't mind my asking, do you have any idea about a proper release date for version 5.3.4.Final? Just so I can tell something to the guys here.

                    • 37. Re: CDI BeanManager cannot find an instance of requested type
                      gytis

                      Hopefully should be available next week.

                      • 38. Re: CDI BeanManager cannot find an instance of requested type
                        manuel_uberti

                        Great news, thanks a lot.

                        • 39. Re: CDI BeanManager cannot find an instance of requested type
                          manuel_uberti

                          Hi gytis, any update on the new release?

                          • 40. Re: CDI BeanManager cannot find an instance of requested type
                            tomjenkinson

                            Hi Manuel,


                            We are just trying to clear [JBTM-2724] Blacktie should not override maven-assembly-plugin version from parent - JBoss Issue Tracker so we can do the release.

                             

                            Thanks,

                            Tom

                            • 41. Re: CDI BeanManager cannot find an instance of requested type
                              manuel_uberti

                              Thank you, tomjenkinson.

                              • 42. Re: CDI BeanManager cannot find an instance of requested type
                                manuel_uberti

                                tomjenkinson and gytis

                                 

                                I updated to the latest Narayana the test project I put here: https://github.com/manuel-uberti/narayana-test

                                 

                                These are the steps I followed:

                                 

                                 

                                Is there any particular configuration I need to add to my WildFly setup?

                                 

                                This is what I have in the log file:

                                 

                                08:50:02,527 WARN  [com.arjuna.ws.wscf] (default task-5) ARJUNA044034: ParticipantRecord.topLevelCommit 0:ffffac1be815:-515df296:57b4080d:5d caught exception: java.lang.IllegalStateException: CDI BeanManager cannot find an instance of requested type com.buddybank.mdw.ejb.service.ConfirmNarayana
                                    at org.jboss.narayana.compensations.impl.BeanManagerUtil.createBeanInstance(BeanManagerUtil.java:21)
                                    at org.jboss.narayana.compensations.impl.ParticipantImpl.instantiate(ParticipantImpl.java:72)
                                    at org.jboss.narayana.compensations.impl.ParticipantImpl.close(ParticipantImpl.java:99)
                                    at org.jboss.narayana.compensations.impl.local.LocalParticipant.close(LocalParticipant.java:67)
                                    at com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ParticipantRecord.topLevelCommit(ParticipantRecord.java:283)
                                    at com.arjuna.ats.arjuna.coordinator.BasicAction.doCommit(BasicAction.java:2868)
                                    at com.arjuna.ats.arjuna.coordinator.BasicAction.doCommit(BasicAction.java:2784)
                                    at com.arjuna.ats.arjuna.coordinator.BasicAction.phase2Commit(BasicAction.java:1853)
                                    at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1527)
                                    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:96)
                                    at com.arjuna.mwlabs.wscf.model.sagas.arjunacore.BACoordinator.close(BACoordinator.java:192)
                                    at com.arjuna.mwlabs.wscf.model.sagas.arjunacore.CoordinatorControl.complete(CoordinatorControl.java:131)
                                    at com.arjuna.mwlabs.wscf11.model.sagas.arjunacore.SagasHLSImple.complete(SagasHLSImple.java:130)
                                    at com.arjuna.mwlabs.wsas.activity.ActivityImple.end(ActivityImple.java:289)
                                    at com.arjuna.mwlabs.wsas.UserActivityImple.end(UserActivityImple.java:261)
                                    at com.arjuna.mwlabs.wscf.model.sagas.arjunacore.CoordinatorServiceImple.close(CoordinatorServiceImple.java:170)
                                    at org.jboss.narayana.compensations.impl.local.LocalBAControler.closeBusinessActivity(LocalBAControler.java:34)
                                    at org.jboss.narayana.compensations.impl.local.LocalBAControler.completeBusinessActivity(LocalBAControler.java:55)
                                    at org.jboss.narayana.compensations.impl.CompensationInterceptorBase.invokeInOurTx(CompensationInterceptorBase.java:62)
                                    at org.jboss.narayana.compensations.impl.CompensationInterceptorRequired.intercept(CompensationInterceptorRequired.java:45)
                                    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.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:74)
                                    at org.jboss.weld.interceptor.proxy.WeldInvocationContext.invokeNext(WeldInvocationContext.java:83)
                                    at org.jboss.weld.interceptor.proxy.WeldInvocationContext.proceed(WeldInvocationContext.java:115)
                                    at org.jboss.weld.bean.InterceptorImpl.intercept(InterceptorImpl.java:108)
                                    at org.jboss.as.weld.ejb.DelegatingInterceptorInvocationContext.proceed(DelegatingInterceptorInvocationContext.java:77)
                                    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:68)
                                    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)
                                    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
                                    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
                                    at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
                                    at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                                    at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
                                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)
                                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
                                    at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:110)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
                                    at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
                                    at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
                                    at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                                    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                                    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)
                                    at org.jboss.as.webservices.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:137)
                                    at org.jboss.wsf.stack.cxf.JBossWSInvoker.performInvocation(JBossWSInvoker.java:169)
                                    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
                                    at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:232)
                                    at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:85)
                                    at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:145)
                                    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
                                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                                    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)
                                    at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
                                    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)
                                    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
                                    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
                                    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)
                                    at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:108)
                                    at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:134)
                                    at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:88)
                                    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)
                                    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)
                                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
                                    at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:136)
                                    at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
                                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
                                    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
                                    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
                                    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                                    at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                    at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
                                    at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
                                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                    at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
                                    at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
                                    at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
                                    at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
                                    at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
                                    at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
                                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                    at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
                                    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
                                    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
                                    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
                                    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
                                    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
                                    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)
                                
                                
                                • 43. Re: CDI BeanManager cannot find an instance of requested type
                                  tomjenkinson

                                  gytis will need to confirm but I imagine you need Narayana Upgrade by tomjenkinson · Pull Request #9121 · wildfly/wildfly · GitHub merging. We left [JBTM-2704] Compensations framework cannot instantiate bean from ear archive - JBoss Issue Tracker open to reflect the fact that the WildFly change is also required.

                                  • 44. Re: CDI BeanManager cannot find an instance of requested type
                                    manuel_uberti

                                    Hi everybody, any news on this?