2 Replies Latest reply on Oct 16, 2007 10:26 PM by 666705

    session problem on WLS 9.2 MP2 cluster

    666705
      Weblogic 9.2 MP2
                
                My webapp seems to be working fine on standalone server. However, when deployed to WLS 9.2.2 cluster gives exception after user login. Where should I start to troubleshoot this issue?
                
                Following is the error log:
                
                Root cause of ServletException. javax.faces.FacesException: #{identity.login}: java.lang.IllegalStat
                eException: No active conversation context at
                com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107) at
                javax.faces.component.UICommand.broadcast(UICommand.java:383) at
                org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186) at
                org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164) at
                rg.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352) at
                com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at
                com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at
                com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at
                javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at weblogic.servlet.internal.StubSecu
                rityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at
                weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
                weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.inte
                rnal.TailFilter.doFilter(TailFilter.java:26) at
                weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at
                org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at
                org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at
                org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) at
                weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
                weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26) javax.faces.el.E
                valuationException: java.lang.IllegalStateException: No active conversation context at
                javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapt
                er.java:91) at
                com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) at
                javax.faces.component.UICommand.broadcast(UICommand.java:383) at
                org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186) at
                org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164) at
                org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352) at
                com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at
                com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at
                com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at
                javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at
                weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) a
                t
                weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
                weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at
                weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at
                weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at
                org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at
                org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at
                org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
                org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) at
                weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) java.lang.IllegalStateEx
                ception: No active conversation context at
                org.jboss.seam.faces.FacesMessages.instance(FacesMessages.java:440) at
                org.jboss.seam.security.Identity.addLoginSuccessfulMessage(Identity.java:296) at
                org.jboss.seam.security.Identity.login(Identity.java:242) at
                sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
                sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
                java.lang.reflect.Method.invoke(Method.java:585) at
                org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328) at
                org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341) at
                org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) at
                org.jboss.el.parser.AstValue.invoke(AstValue.java:96) at
                org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at
                com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) at
                javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapt
                er.java:77) at
                com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) at
                javax.faces.component.UICommand.broadcast(UICommand.java:383) at
                org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186) at
                org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164) at
                org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352) at
                com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at
                com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at
                com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at
                javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at
                weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) a
                t
                weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
                weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at
                weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at
                weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
                org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at
                org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
        • 1. Re: session problem on WLS 9.2 MP2 cluster
          666705
          Is the Seam framework cluster safe? There are some best practices (http://edocs.bea.com/wls/docs92/cluster/best.html) which Seam may not meet.
                    
                    Do you see this exception even if you invoke the service on the same node?
                    
                    Do you use an Apache load balancer? As far as I know Apache routes a user to the same node. (However, if one node fails this will not help you of course)
                    
                    Peter
          • 2. Re: session problem on WLS 9.2 MP2 cluster
            666705
            This issue was due to a seam configuration error. Seam is cluster safe, the app works fine now. The reason the app was not working on cluster was that cluster was firewalled and standalone deployment was not. The app was supposed to pick up dtd's locally but was trying to connect over the network to fetch dtd.