6 Replies Latest reply on Mar 20, 2014 3:35 AM by Martin Kouba

    weld issue with  tomcat

    hany man Newbie

      hi guys  i have a problem by integrating weld with tomcat

       

      i have two war files for two applications

      but tomcat container doesn't allow me to deploy both of them

      tomcat container only allow one of them and the other application fails and get this error

       

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

      org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:680)

      org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:79)

      org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:78)

      managed.managedTheme$Proxy$_$$_WeldClientProxy.getTheme(Unknown Source)

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      java.lang.reflect.Method.invoke(Unknown Source)

      javax.el.BeanELResolver.getValue(BeanELResolver.java:87)

      com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

      com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

      org.apache.el.parser.AstValue.getValue(AstValue.java:182)

      org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)

      org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)

      org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:65)

      javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:864)

      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1894)

      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1899)

      com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:451)

      com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)

      javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)

      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)

      javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)

      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

       

       

       

      in brief (tomcat doesn't allow two applications to deploy on the same instance)

       

      any ideas?