JBoss Community

CDI Bean invocation in EJB-Webservice

created by semubiz in JBoss Web Services - View the full discussion

Hi all

 

I'm trying to invoke a CDI Bean from a webservice. At invocation on the CDI-Proxy the error "org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped" appears. According to http://docs.oracle.com/javaee/6/api/javax/enterprise/context/RequestScoped.html RequestScoped should be active during WS invocation.

 

Empty beans.xml is included in META-INF (to activate CDI).

 

Does anybody have a clue why it does not works?

 

 

Webservice:

package com.ieffects.shops.wf;

 

import javax.ejb.Stateless;

import javax.inject.Inject;

import javax.jws.WebMethod;

import javax.jws.WebService;

 

@Stateless

@WebService

public class RequestScopeTestWebservice {

 

    @Inject

    RequestScopedBean _req;

   

    @WebMethod

    public void doTest() {

        _req.helloWorld();

    }

}

 

 

CDI-Bean:

 

package com.ieffects.shops.wf;

 

import javax.annotation.PostConstruct;

import javax.enterprise.context.RequestScoped;

 

@RequestScoped

public class RequestScopedBean {

 

   

    @PostConstruct

    public void init() {

        System.out.println("RequestScope init");

    }

   

    public void helloWorld() {

        System.out.println("Hello world!!");

    }

}

 

 

 

Stacktrace:

 

15:27:32,337 ERROR org.jboss.ejb3.invocation (http--127.0.0.1-8080-1) JBAS014134: EJB Invocation failed on component RequestScopeTestWebservice for method public void com.ieffects.shops.wf.RequestScopeTestWebservice.doTest(): javax.ejb.EJBException: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.webservices.invocation.AbstractInvocationHandlerEJB.invoke(AbstractInvocationHandlerEJB.java:112)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) CDI Bean invocation in EJB-Webservice

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) CDI Bean invocation in EJB-Webservice

    at java.util.concurrent.FutureTask.run(FutureTask.java:138) CDI Bean invocation in EJB-Webservice

    at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

    at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

    at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

    at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final

    at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

    at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) jbossws-spi-2.0.3.GA.jar:2.0.3.GA

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

    at java.lang.Thread.run(Thread.java:680) CDI Bean invocation in EJB-Webservice

Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:598) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at com.ieffects.shops.wf.RequestScopedBean$Proxy$_$$_WeldClientProxy.helloWorld(RequestScopedBean$Proxy$_$$_WeldClientProxy.java) CDI Bean invocation in EJB-Webservice

    at com.ieffects.shops.wf.RequestScopeTestWebservice.doTest(RequestScopeTestWebservice.java:17) CDI Bean invocation in EJB-Webservice

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) CDI Bean invocation in EJB-Webservice

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) CDI Bean invocation in EJB-Webservice

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) CDI Bean invocation in EJB-Webservice

    at java.lang.reflect.Method.invoke(Method.java:597) CDI Bean invocation in EJB-Webservice

    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    ... 49 more

 

15:27:32,403 ERROR org.jboss.as.webservices.invocation.InvocationHandlerEJB3 (http--127.0.0.1-8080-1) Method invocation failed with exception: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped: javax.ejb.EJBException: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.webservices.invocation.AbstractInvocationHandlerEJB.invoke(AbstractInvocationHandlerEJB.java:112)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) CDI Bean invocation in EJB-Webservice

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) CDI Bean invocation in EJB-Webservice

    at java.util.concurrent.FutureTask.run(FutureTask.java:138) CDI Bean invocation in EJB-Webservice

    at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

    at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

    at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

    at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final

    at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

    at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) jbossws-spi-2.0.3.GA.jar:2.0.3.GA

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

    at java.lang.Thread.run(Thread.java:680) CDI Bean invocation in EJB-Webservice

Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:598) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at com.ieffects.shops.wf.RequestScopedBean$Proxy$_$$_WeldClientProxy.helloWorld(RequestScopedBean$Proxy$_$$_WeldClientProxy.java) CDI Bean invocation in EJB-Webservice

    at com.ieffects.shops.wf.RequestScopeTestWebservice.doTest(RequestScopeTestWebservice.java:17) CDI Bean invocation in EJB-Webservice

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) CDI Bean invocation in EJB-Webservice

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) CDI Bean invocation in EJB-Webservice

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) CDI Bean invocation in EJB-Webservice

    at java.lang.reflect.Method.invoke(Method.java:597) CDI Bean invocation in EJB-Webservice

    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    ... 49 more

 

15:27:32,425 WARNING org.apache.cxf.phase.PhaseInterceptorChain (http--127.0.0.1-8080-1) Application RequestScopeTestWebserviceService#doTest has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.wsf.stack.cxf.JBossWSInvoker.createFault(JBossWSInvoker.java:246)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:207)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) CDI Bean invocation in EJB-Webservice

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) CDI Bean invocation in EJB-Webservice

    at java.util.concurrent.FutureTask.run(FutureTask.java:138) CDI Bean invocation in EJB-Webservice

    at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

    at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

    at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

    at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final

    at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

    at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) jbossws-spi-2.0.3.GA.jar:2.0.3.GA

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

    at java.lang.Thread.run(Thread.java:680) CDI Bean invocation in EJB-Webservice

Caused by: javax.ejb.EJBException: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.webservices.invocation.AbstractInvocationHandlerEJB.invoke(AbstractInvocationHandlerEJB.java:112)

    at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)

    ... 32 more

Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

    at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:598) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79) weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

    at com.ieffects.shops.wf.RequestScopedBean$Proxy$_$$_WeldClientProxy.helloWorld(RequestScopedBean$Proxy$_$$_WeldClientProxy.java) CDI Bean invocation in EJB-Webservice

    at com.ieffects.shops.wf.RequestScopeTestWebservice.doTest(RequestScopeTestWebservice.java:17) CDI Bean invocation in EJB-Webservice

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) CDI Bean invocation in EJB-Webservice

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) CDI Bean invocation in EJB-Webservice

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) CDI Bean invocation in EJB-Webservice

    at java.lang.reflect.Method.invoke(Method.java:597) CDI Bean invocation in EJB-Webservice

    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82) jboss-as-weld-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) jboss-as-ee-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) jboss-invocation-1.1.1.Final.jar:1.1.1.Final

    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final

    ... 49 more

 

 

 

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community