7 Replies Latest reply on Aug 7, 2011 12:20 PM by Charles Akalugwu

    Anybody having difficulty with CDI apps in JBoss 6 M4?

    Ian R Newbie

      I have just tried porting my app to M4, but there are JSF/Weld errors occuring in simple cases which used to work.


      Here's a stack trace - any obvious things I can try? I've tried upgrading JSF from 2.0.2 to 2.0.3 but it makes no difference.


      Thanks,


      Ian




      javax.servlet.ServletException: WELD-001303 No active contexts for scope type @ConversationScoped
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
           org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
           org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
           mypackage.ui.ResourceProtectionFilter.doFilter(ResourceProtectionFilter.java:46)
      
      root cause
      
      org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type @ConversationScoped
           org.jboss.weld.conversation.ConversationImpl.checkConversationActive(ConversationImpl.java:79)
           org.jboss.weld.conversation.ConversationImpl.isTransient(ConversationImpl.java:234)
           org.jboss.weld.conversation.ConversationImpl.toString(ConversationImpl.java:199)
           java.text.MessageFormat.subformat(MessageFormat.java:1246)
           java.text.MessageFormat.format(MessageFormat.java:836)
           java.text.Format.format(Format.java:140)
           java.text.MessageFormat.format(MessageFormat.java:812)
           ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:89)
           org.jboss.weld.logging.WeldMessageConveyor.getMessage(WeldMessageConveyor.java:78)
           org.slf4j.cal10n.LocLogger.debug(LocLogger.java:95)
           org.jboss.weld.conversation.ConversationImpl.switchTo(ConversationImpl.java:190)
           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           java.lang.reflect.Method.invoke(Method.java:597)
           org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304)
           org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
           org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
           org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298)
           org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:113)
           org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.java:43)
           org.jboss.weld.conversation.ConversationImpl_$$_javassist_29.switchTo(ConversationImpl_$$_javassist_29.java)
           org.jboss.weld.conversation.AbstractConversationManager.beginOrRestoreConversation(AbstractConversationManager.java:137)
           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           java.lang.reflect.Method.invoke(Method.java:597)
           org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304)
           org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
           org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
           org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298)
           org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:113)
           org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.java:43)
           org.jboss.weld.conversation.ServletConversationManager_$$_javassist_27.beginOrRestoreConversation(ServletConversationManager_$$_javassist_27.java)
           org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener.java:171)
           org.jboss.weld.jsf.WeldPhaseListener.beforeRestoreView(WeldPhaseListener.java:118)
           org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:87)
           com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)
           com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
           org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
           org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
           mypackage.ui.ResourceProtectionFilter.doFilter(ResourceProtectionFilter.java:46)