6 Replies Latest reply on Sep 30, 2010 8:53 AM by Marcos Antonio

    weld deployment works in jboss 6m4 but not in jboss 6m5

    nimo stephan Master

      I updated from jboss as 6 m4 to m5. While deployment of a MyWAR in Milestone 4 is working, it does not work in Milestone 5.



      This full stacktrace can be seen here: http://community.jboss.org/thread/157055




      10:57:33,719 SEVERITY [javax.enterprise.resource.webcontainer.jsf.application] javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound: javax.faces.el.EvaluationException: javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [:2.0.2-FCS]
      
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [:2.0.2-FCS]
      
          at javax.faces.component.UICommand.broadcast(UICommand.java:315) [:2.0.2-FCS]
      
          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775) [:2.0.2-FCS]
      
          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267) [:2.0.2-FCS]
      
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [:2.0.2-FCS]
      
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [:2.0.2-FCS]
      
          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [:2.0.2-FCS]
      
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) [:2.0.2-FCS]
      
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]
      
          at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]
      
          at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:2010-08-30 15:40]
      
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.20100911-M5]
      
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.20100911-M5]
      
          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
      
          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
      
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.20100911-M5]
      
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.20100911-M5]
      
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.20100911-M5]
      
          at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.20100911-M5]
      
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.20100911-M5]
      
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.20100911-M5]
      
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:6.0.0.20100911-M5]
      
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20100911-M5]
      
          at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
      
      Caused by: javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:183) [:0.0.1]
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:251) [:0.0.1]
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349) [:0.0.1]
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209) [:0.0.1]
      
          at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52) [:0.0.1]
      
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.Alpha3]
      
          at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) [:1.0.0.GA]
      
       ...
      
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [:2.0.2-FCS]
      
          ... 33 more
      
      Caused by: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:82) [:1.5.1]
      
          at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99) [:1.5.1]
      
          at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:89) [:1.5.1]
      
          at org.jboss.ejb3.interceptor.InterceptorInjector.inject(InterceptorInjector.java:49) [:1.5.1]
      
          at org.jboss.ejb3.EJBContainer.createInterceptor(EJBContainer.java:408) [:1.5.1]
      
          at org.jboss.ejb3.BaseContext.initialiseInterceptorInstances(BaseContext.java:112) [:1.5.1]
      
          at org.jboss.ejb3.injection.InjectionHelper.inject(InjectionHelper.java:55) [:1.5.1]
      ...
      
          ... 123 more
      
      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: MyWAR not bound]
      
          at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1356) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:819) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:835) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
      
          at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_21]
      
          at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1350) [:5.0.5.Final]
      
          ... 132 more
      
      Caused by: javax.naming.NameNotFoundException: MyWAR not bound
      
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]
      
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]
      ..
      
          ... 137 more
      
       
      
      10:57:33,734 WARNUNG [javax.enterprise.resource.webcontainer.jsf.lifecycle] #{myBean.doAction}: javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound: javax.faces.FacesException: #{myBean.doAction}: javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [:2.0.2-FCS]
      
          at javax.faces.component.UICommand.broadcast(UICommand.java:315) [:2.0.2-FCS]
      
          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775) [:2.0.2-FCS]
      
        ..
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20100911-M5]
      
          at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
      
      Caused by: javax.faces.el.EvaluationException: javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [:2.0.2-FCS]
      
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [:2.0.2-FCS]
      
          ... 32 more
      
      Caused by: javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:183) [:0.0.1]
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:251) [:0.0.1]
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349) [:0.0.1]
      
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209) [:0.0.1]
      
         ..
      
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [:2.0.2-FCS]
      
          ... 33 more
      
      Caused by: java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: MyWAR not bound
      
          at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:82) [:1.5.1]
      
          at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99) [:1.5.1]
      
          at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:89) [:1.5.1]
      ..
          at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247) [:0.0.1]
      
          ... 99 more
      
      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: MyWAR not bound]]
      
          at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1356) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:819) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
      
          at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source) [:1.6.0_21]
      
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_21]
      
          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_21]
      
          at org.jboss.ejb3.EJBContainer$1.invoke(EJBContainer.java:877) [:1.5.1]
      
          at $Proxy180.lookup(Unknown Source)    at org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44) [:1.5.1]
      
          at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75) [:1.5.1]
      
          ... 123 more
      
      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: MyWAR not bound]
      
          at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1356) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:819) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:835) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
      
          at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_21]
      
          at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1350) [:5.0.5.Final]
      
          ... 132 more
      
      Caused by: javax.naming.NameNotFoundException: MyWAR not bound
      
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]
      
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]
      
          at org.jnp.server.NamingServer.getObject(NamingServer.java:785) [:5.0.5.Final]
      
          at org.jnp.server.NamingServer.lookup(NamingServer.java:396) [:5.0.5.Final]
      
          at org.jnp.server.NamingServer.lookup(NamingServer.java:399) [:5.0.5.Final]
      
          at org.jnp.server.NamingServer.lookup(NamingServer.java:399) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) [:5.0.5.Final]
      
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
      
          at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_21]
      
          at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1350) [:5.0.5.Final]
      
          ... 137 more





       

        • 1. Re: weld deployment works in jboss 6m4 but not in jboss 6m5
          nimo stephan Master

          The strange thing is: deployment works. only when invoking a bean, then weld complains.


          serverError: class javax.faces.el.EvaluationException java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.weld.integration.ejb.SessionBeanInterceptor/beanManager into property org.jboss.weld.integration.ejb.SessionBeanInterceptor.beanManager: myWAR not bound


          Is that a bug? With WELD versions before 1.1.0.Beta1 myWAR works.

          • 5. Re: weld deployment works in jboss 6m4 but not in jboss 6m5
            Marcos Antonio Newbie

            Nicklas Karlsson wrote on Sep 30, 2010 07:59:


            Have you tried deploying to a running instance? ref: https://jira.jboss.org/browse/JBAS-8377


            Hey, I have just tried this and it worked. In a running instance the error doesn't appear.


            Marcos

            • 6. Re: weld deployment works in jboss 6m4 but not in jboss 6m5
              Marcos Antonio Newbie
              I thought I was a little precipitate. Although the pages are show correctly, I can see this error in the log:

              2010-09-30 09:48:36,843 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/solicitacoes]] (http-127.0.0.1-8080-7) Session event listener threw exception: 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:630) [:2010-08-30 15:40]
                   at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:73) [:2010-08-30 15:40]
                   at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48) [:2010-08-30 15:40]
                   at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:94) [:2010-08-30 15:40]
                   at org.jboss.weld.servlet.org$jboss$weld$bean-weld-ManagedBean-class_org$jboss$weld$servlet$HttpSessionManager_$$_WeldProxy.setSession(org$jboss$weld$bean-weld-ManagedBean-class_org$jboss$weld$servlet$HttpSessionManager_$$_WeldProxy.java) [:2010-08-30 15:40]
                   at org.jboss.weld.servlet.ServletLifecycle.cacheSession(ServletLifecycle.java:167) [:2010-08-30 15:40]
                   at org.jboss.weld.servlet.ServletLifecycle.restoreSessionContext(ServletLifecycle.java:161) [:2010-08-30 15:40]
                   at org.jboss.weld.servlet.ServletLifecycle.beginSession(ServletLifecycle.java:142) [:2010-08-30 15:40]
                   at org.jboss.weld.servlet.WeldListener.sessionCreated(WeldListener.java:126) [:2010-08-30 15:40]
                   at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:367) [:6.0.0.20100911-M5]
                   at org.apache.catalina.session.StandardSession.setId(StandardSession.java:341) [:6.0.0.20100911-M5]
                   at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:857) [:6.0.0.20100911-M5]
                   at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:291) [:6.0.0.20100911-M5]
                   at org.apache.catalina.connector.Request.doGetSession(Request.java:2587) [:6.0.0.20100911-M5]
                   at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2458) [:6.0.0.20100911-M5]
                   at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:231) [:6.0.0.20100911-M5]
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:559) [:6.0.0.20100911-M5]
                   at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
                   at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.20100911-M5]
                   at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.20100911-M5]
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.20100911-M5]
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.20100911-M5]
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.20100911-M5]
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.20100911-M5]
                   at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.20100911-M5]
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.20100911-M5]
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.20100911-M5]
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:6.0.0.20100911-M5]
                   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20100911-M5]
                   at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]