Details
-
Bug
-
Resolution: Not a Bug
-
Critical
-
None
-
7.3.0.CD18, 7.2.6.GA
-
None
Description
This looks like a regression from EAP 6.4 -> 7.0 / 7.1 / 7.2
EJB/CDI Interfaces in a custom module.
Client hits REST service in war that inject a CDI_1 bean. CDI_1 looks up EJB and invokes the EJB. The EJB then inject another CDI bean which is failing with the error below:
12:47:17,884 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /reproducer-web/execute_test: org.jboss.resteasy.spi.UnhandledException: javax.ejb.EJBException: org.jboss.weld.contexts.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:78) at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:222) at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:197) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:459) at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:233) at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:139) at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358) ... Caused by: org.jboss.weld.contexts.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:647) at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:89) at org.jboss.weld.bean.ContextualInstanceStrategy$CachingContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:164) at org.jboss.weld.bean.ContextualInstance.getIfExists(ContextualInstance.java:63) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:87) at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:131) at reproducer.impl.ContextServiceBean$Proxy$_$$_WeldClientProxy.toString(Unknown Source) at java.lang.String.valueOf(String.java:2994) at java.lang.StringBuilder.append(StringBuilder.java:131) at reproducer.impl.DTOBean.echo(DTOBean.java:18) at web.ClientBean.execute(ClientBean.java:22) ...