5 Replies Latest reply on Aug 7, 2007 11:56 AM by Jamie Cruise

    authenticator.sessionContext CVS

    Justin F. Knotzke Newbie


      Hi,

      I just upgraded to CVS and when attempting to log in, I get the following error:

      javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: In attribute requires non-null value: authenticator.sessionContext
      


      I suspect I am missing something in components.xml..

      Thanks

      J

        • 1. Re: authenticator.sessionContext CVS
          Pete Muir Master

          Post the whole stack trace. Is that the first exception thrown?

          • 2. Re: authenticator.sessionContext CVS
            Justin F. Knotzke Newbie


            Hi

            I changed my code to do a create=true on the @In Context sessionContext in my login action.. That seems to rid of the error.. However, now, when I attempt to login I get:

            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(MethodBindingMethodExpressionAdapter.java:91)
             at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.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(RuleBasedIdentity.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(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             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: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(MethodBindingMethodExpressionAdapter.java:77



            But if I go back and try to login again, it goes through. I suspect the error is when Faces attempts to display a message indicating that the login was successful..

            This was code that worked before switching to CVS.. I figure things have changed in the CVS trunk.

            Thanks

            J


            • 3. Re: authenticator.sessionContext CVS
              Pete Muir Master

              Trunk is now using Drools 4, make sure you've upgraded your jars.

              • 4. Re: authenticator.sessionContext CVS
                Justin F. Knotzke Newbie

                Ok.. did that and same error:

                Here is what's in my lib:

                activation.jar
                -rw-r--r-- 1 jknotzke jknotzke 1262988 2007-08-07 09:40 ajax4jsf-1.1.1.jar
                -rw-r--r-- 1 jknotzke jknotzke 5769 2007-08-07 09:40 ant-antlr.jar
                -rw-r--r-- 1 jknotzke jknotzke 1289806 2007-08-07 09:40 ant.jar
                -rw-r--r-- 1 jknotzke jknotzke 11734 2007-08-07 09:40 ant-launcher.jar
                -rw-r--r-- 1 jknotzke jknotzke 443432 2007-08-07 09:40 antlr-2.7.6.jar
                -rw-r--r-- 1 jknotzke jknotzke 92015 2007-08-07 09:40 antlr-runtime-3.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 430311 2007-08-07 09:40 ant-nodeps.jar
                -rw-r--r-- 1 jknotzke jknotzke 242154 2007-08-07 09:40 bsh.jar
                -rw-r--r-- 1 jknotzke jknotzke 177386 2007-08-07 09:40 commons-beanutils-1.7.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 168446 2007-08-07 09:40 commons-digester-1.6.jar
                -rw-r--r-- 1 jknotzke jknotzke 538084 2007-08-07 09:40 drools-compiler-4.0.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 1006246 2007-08-07 09:40 drools-core-4.0.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 2122392 2007-08-07 09:40 groovy-all-1.1-BETA-1.jar
                -rw-r--r-- 1 jknotzke jknotzke 278920 2007-08-07 09:40 gwt-servlet.jar
                -rw-r--r-- 1 jknotzke jknotzke 2719460 2007-08-07 09:40 hibernate-all.jar
                -rw-r--r-- 1 jknotzke jknotzke 66426 2007-08-07 09:40 hibernate-commons-annotations.jar
                -rw-r--r-- 1 jknotzke jknotzke 147825 2007-08-07 09:40 hibernate-search.jar
                -rw-r--r-- 1 jknotzke jknotzke 1138709 2007-08-07 09:40 itext-2.0.4.jar
                -rw-r--r-- 1 jknotzke jknotzke 328010 2007-08-07 09:40 itext-asian.jar
                -rw-r--r-- 1 jknotzke jknotzke 450470 2007-08-07 09:40 janino-2.5.7.jar
                -rw-r--r-- 1 jknotzke jknotzke 706964 2007-08-07 09:40 jboss-cache-jdk50.jar
                -rw-r--r-- 1 jknotzke jknotzke 45747 2007-08-07 09:40 jboss-el-api.jar
                -rw-r--r-- 1 jknotzke jknotzke 133966 2007-08-07 09:40 jboss-el.jar
                -rw-r--r-- 1 jknotzke jknotzke 13655643 2007-08-07 09:40 jboss-embedded-all.jar
                -rw-r--r-- 1 jknotzke jknotzke 58455 2007-08-07 09:40 jboss-jaxws.jar
                -rw-r--r-- 1 jknotzke jknotzke 26550 2007-08-07 09:40 jboss-saaj.jar
                -rw-r--r-- 1 jknotzke jknotzke 11603 2007-08-07 09:40 jboss-seam-debug.jar
                -rw-r--r-- 1 jknotzke jknotzke 64976 2007-08-07 09:40 jboss-seam-ioc.jar
                -rw-r--r-- 1 jknotzke jknotzke 811133 2007-08-07 09:40 jboss-seam.jar
                -rw-r--r-- 1 jknotzke jknotzke 24494 2007-08-07 09:40 jboss-seam-mail.jar
                -rw-r--r-- 1 jknotzke jknotzke 78792 2007-08-07 09:40 jboss-seam-pdf.jar
                -rw-r--r-- 1 jknotzke jknotzke 94728 2007-08-07 09:40 jboss-seam-remoting.jar
                -rw-r--r-- 1 jknotzke jknotzke 211627 2007-08-07 09:40 jboss-seam-ui.jar
                -rw-r--r-- 1 jknotzke jknotzke 658168 2007-08-07 09:40 jbpm-jpdl.jar
                -rw-r--r-- 1 jknotzke jknotzke 426691 2007-08-07 09:40 jcaptcha-all-1.0-RC6.jar
                -rw-r--r-- 1 jknotzke jknotzke 311481 2007-08-07 09:40 jcommon-1.0.10.jar
                -rw-r--r-- 1 jknotzke jknotzke 1212442 2007-08-07 09:40 jfreechart-1.0.6.jar
                -rw-r--r-- 1 jknotzke jknotzke 1821443 2007-08-07 09:40 jgroups.jar
                -rw-r--r-- 1 jknotzke jknotzke 323012 2007-08-07 09:40 jsf-api.jar
                -rw-r--r-- 1 jknotzke jknotzke 300600 2007-08-07 09:40 jsf-facelets.jar
                -rw-r--r-- 1 jknotzke jknotzke 1210046 2007-08-07 09:40 jsf-impl.jar
                -rw-r--r-- 1 jknotzke jknotzke 82157 2007-08-07 09:40 jsp-api.jar
                -rw-r--r-- 1 jknotzke jknotzke 16923 2007-08-07 09:40 jstl-1.1.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 463578 2007-08-07 09:40 lucene-core-2.1.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 387690 2007-08-07 09:40 mail.jar
                -rw-r--r-- 1 jknotzke jknotzke 13737 2007-08-07 09:40 mail-ra.jar
                -rw-r--r-- 1 jknotzke jknotzke 396240 2007-08-07 09:40 mvel14-1.2rc1.jar
                -rw-r--r-- 1 jknotzke jknotzke 527090 2007-08-07 09:40 mysql-connector-java-5.0.6-bin.jar
                -rw-r--r-- 1 jknotzke jknotzke 16878 2007-08-07 09:40 portlet-api-lib.jar
                -rw-r--r-- 1 jknotzke jknotzke 421601 2007-08-07 09:40 quartz-1.6.0.jar
                -rw-r--r-- 1 jknotzke jknotzke 1172 2007-08-07 09:40 readme.txt
                -rw-r--r-- 1 jknotzke jknotzke 900924 2007-08-07 09:40 richfaces-3.0.1.jar
                -rw-r--r-- 1 jknotzke jknotzke 97523 2007-08-07 09:40 servlet-api.jar
                -rw-r--r-- 1 jknotzke jknotzke 2694014 2007-08-07 09:40 spring.jar
                -rw-r--r-- 1 jknotzke jknotzke 819660 2007-08-07 09:40 testng-5.6-jdk15.jar
                -rw-r--r-- 1 jknotzke jknotzke 5590165 2007-08-07 09:40 thirdparty-all.jar
                -rw-r--r-- 1 jknotzke jknotzke 127248 2007-08-07 09:40 urlrewrite-3.0.4.jar
                -rw-r--r-- 1 jknotzke jknotzke 1223708 2007-08-07 09:40 xercesImpl.jar
                -rw-r--r-- 1 jknotzke jknotzke 194354 2007-08-07 09:40 xml-apis.jar
                
                


                I also wiped out the deployed directory for my project in JBOSS 4.2 GA and redeployed..

                Thanks

                J


                • 5. Re: authenticator.sessionContext CVS
                  Jamie Cruise Newbie

                  I think this stuff has changed a bit in 2.0. I can't see a component id for the sessionContext anymore, so I use:

                  Context sessionContext = Contexts.getSessionContext();
                  


                  Hope this helps.

                  Cheers
                  J