3 Replies Latest reply on Aug 14, 2007 4:09 AM by Pete Muir

    authenticate error..

    Madhav Inamti Novice

      I am trying to authenticate a user and write the user's profile into the session context. I am sure this worked before. I have tested it. I downloaded Seam recently from the trunk for another JIRA fix. However, I seem to get some kind of injection error.

      Am I doing something wrong here ?

      Thanks,
      M

      21:38:55,776 ERROR [SeamLoginModule] Error invoking login method
      javax.el.ELException: org.jboss.seam.RequiredException: In attribute requires no
      n-null value: authenticator.sessionContext
      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329
      )
      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
      )
      at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
      8)
      at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
      at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
      6)
      at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
      at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.ja
      va:108)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
      86)
      at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext
      .java:703)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
      at org.jboss.seam.security.Identity.authenticate(Identity.java:335)
      at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
      at org.jboss.seam.security.Identity.login(Identity.java:237)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
      )
      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
      )
      at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
      8)
      at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
      at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
      6)
      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
      va:68)
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
      hodBindingMethodExpressionAdapter.java:77)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
      enerImpl.java:91)
      at javax.faces.component.UICommand.broadcast(UICommand.java:383)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.j
      ava:180)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot
      .java:158)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewR
      oot.java:346)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
      ionPhase.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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:82)
      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
      a:68)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:68)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:68)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:68)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:68)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
      MLFilter.java:127)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
      java:277)
      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:68)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:68)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:433)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      7)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.seam.RequiredException: In attribute requires non-null valu
      e: authenticator.sessionContext
      at org.jboss.seam.Component.getValueToInject(Component.java:2153)
      at org.jboss.seam.Component.injectAttributes(Component.java:1583)
      at org.jboss.seam.Component.inject(Component.java:1404)
      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterc
      eptor.java:45)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
      Context.java:68)
      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodConte
      xtInterceptor.java:42)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
      Context.java:68)
      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
      106)
      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(Java
      BeanInterceptor.java:155)
      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanIntercept
      or.java:91)
      at com.epohai.registration.sb.Authenticator_$$_javassist_0.authenticate(
      Authenticator_$$_javassist_0.java)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
      )
      ... 76 more

        • 1. Re: authenticate error..
          Madhav Inamti Novice

          If I set required to false on my sessionContext, I get this error.

          22:18:08,409 FATAL [application] java.lang.NoSuchMethodError: org.drools.Statefu
          lSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.drools.Stat
          efulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:91)
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:91)
          at javax.faces.component.UICommand.broadcast(UICommand.java:383)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.j
          ava:180)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot
          .java:158)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewR
          oot.java:346)
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
          ionPhase.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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:82)
          at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
          a:68)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
          MLFilter.java:127)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
          java:277)
          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
          onnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
          7)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: java.lang.NoSuchMethodError: org.drools.StatefulSession.insert(Ljava/
          lang/Object;)Lorg/drools/FactHandle;
          at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedI
          dentity.java:100)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:336)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
          at org.jboss.seam.security.Identity.login(Identity.java:237)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
          )
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
          )
          at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
          8)
          at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
          at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
          6)
          at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
          va:68)
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:77)
          ... 46 more
          22:18:08,409 WARN [lifecycle] #{identity.login}: java.lang.NoSuchMethodError: o
          rg.drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          javax.faces.FacesException: #{identity.login}: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:107)
          at javax.faces.component.UICommand.broadcast(UICommand.java:383)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.j
          ava:180)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot
          .java:158)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewR
          oot.java:346)
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
          ionPhase.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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:82)
          at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
          a:68)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
          MLFilter.java:127)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
          java:277)
          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
          onnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
          7)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:91)
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:91)
          ... 45 more
          Caused by: java.lang.NoSuchMethodError: org.drools.StatefulSession.insert(Ljava/
          lang/Object;)Lorg/drools/FactHandle;
          at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedI
          dentity.java:100)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:336)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
          at org.jboss.seam.security.Identity.login(Identity.java:237)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
          )
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
          )
          at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
          8)
          at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
          at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
          6)
          at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
          va:68)
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:77)
          ... 46 more
          22:18:08,409 WARN [lifecycle] executePhase(INVOKE_APPLICATION 5,com.sun.faces.c
          ontext.FacesContextImpl@189613a) threw exception
          javax.faces.FacesException: #{identity.login}: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
          ionPhase.java:105)
          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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:82)
          at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
          a:68)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
          MLFilter.java:127)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
          java:277)
          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
          onnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
          7)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: javax.faces.FacesException: #{identity.login}: java.lang.NoSuchMethod
          Error: org.drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHand
          le;
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:107)
          at javax.faces.component.UICommand.broadcast(UICommand.java:383)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.j
          ava:180)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot
          .java:158)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewR
          oot.java:346)
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
          ionPhase.java:97)
          ... 40 more
          Caused by: javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:91)
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:91)
          ... 45 more
          Caused by: java.lang.NoSuchMethodError: org.drools.StatefulSession.insert(Ljava/
          lang/Object;)Lorg/drools/FactHandle;
          at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedI
          dentity.java:100)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:336)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
          at org.jboss.seam.security.Identity.login(Identity.java:237)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
          )
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
          )
          at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
          8)
          at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
          at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
          6)
          at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
          va:68)
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:77)
          ... 46 more
          22:18:08,469 ERROR [ExceptionFilter] handling uncaught exception
          javax.servlet.ServletException: #{identity.login}: java.lang.NoSuchMethodError:
          org.drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:82)
          at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
          a:68)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
          MLFilter.java:127)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
          java:277)
          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
          onnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
          7)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: javax.faces.FacesException: #{identity.login}: java.lang.NoSuchMethod
          Error: org.drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHand
          le;
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:107)
          at javax.faces.component.UICommand.broadcast(UICommand.java:383)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.j
          ava:180)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot
          .java:158)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewR
          oot.java:346)
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
          ionPhase.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)
          ... 37 more
          Caused by: javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:91)
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:91)
          ... 45 more
          Caused by: java.lang.NoSuchMethodError: org.drools.StatefulSession.insert(Ljava/
          lang/Object;)Lorg/drools/FactHandle;
          at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedI
          dentity.java:100)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:336)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
          at org.jboss.seam.security.Identity.login(Identity.java:237)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
          )
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
          )
          at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
          8)
          at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
          at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
          6)
          at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
          va:68)
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:77)
          ... 46 more
          22:18:08,489 ERROR [ExceptionFilter] exception root cause
          javax.faces.FacesException: #{identity.login}: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:107)
          at javax.faces.component.UICommand.broadcast(UICommand.java:383)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.j
          ava:180)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot
          .java:158)
          at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewR
          oot.java:346)
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
          ionPhase.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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:82)
          at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
          a:68)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
          MLFilter.java:127)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
          java:277)
          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:68)
          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
          onnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
          7)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.
          drools.StatefulSession.insert(Ljava/lang/Object;)Lorg/drools/FactHandle;
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:91)
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
          enerImpl.java:91)
          ... 45 more
          Caused by: java.lang.NoSuchMethodError: org.drools.StatefulSession.insert(Ljava/
          lang/Object;)Lorg/drools/FactHandle;
          at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedI
          dentity.java:100)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:336)
          at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
          at org.jboss.seam.security.Identity.login(Identity.java:237)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325
          )
          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338
          )
          at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
          8)
          at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
          at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
          6)
          at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
          va:68)
          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
          hodBindingMethodExpressionAdapter.java:77)
          ... 46 more

          • 2. Re: authenticate error..
            Nicklas Karlsson Master

            Are you sure you have the latest drools-libraries and you don't have any other versions hanging around the server?

            • 3. Re: authenticate error..
              Pete Muir Master

              You can no longer inject the session context. Instead use Contexts.