9 Replies Latest reply on Jan 7, 2013 4:26 PM by Nicolas Heron

    Login failed  org.jboss.seam.security.AuthenticationException: Authenticator must provide a no  n-null User after successful authentication

    Dmitry Erkin Newbie

      Hello!

       

      I catch java.lang.NullPointerException

      if I uncomment next line (highlighted) in beams.xml

       

      <security:IdentityImpl>

          <s:modifies/>

          <!-- JAAS based authentication -->

          <security:authenticatorName>jaasAuthenticator</security:authenticatorName>

       

        </security:IdentityImpl>

       

      <security:jaas.JaasAuthenticator>

          <s:modifies/>

          <jaasConfigName>drools-guvnor</jaasConfigName>

        </security:jaas.JaasAuthenticator>

       

      <guvnorSecurity:RoleBasedPermissionResolver>

          <s:modifies/>

          <guvnorSecurity:enableRoleBasedAuthorization>true</guvnorSecurity:enableRoleBasedAuthorization>

        </guvnorSecurity:RoleBasedPermissionResolver>

       

       

      bin\setenv.bat:

      set BONITA_HOME="-DBONITA_HOME=%CATALINA_HOME%\bonita"

      set LOG_OPTS="-Djava.util.logging.config.file=%CATALINA_HOME%\external\logging\logging.properties"

      set SECURITY_OPTS="-Djava.security.auth.login.config=%CATALINA_HOME%\external\security\jaas-standard.cfg"

      set CMIS_CONFIG=-Dexo.data.dir="%CATALINA_HOME%\external\xcmis\ext-exo-data" -Dorg.exoplatform.container.standalone.config="%CATALINA_HOME%\external\xcmis\ext-exo-conf\exo-configuration-oracle.xml"

       

      set JAVA_OPTS=%JAVA_OPTS% %LOG_OPTS% %SECURITY_OPTS% %BONITA_OPTS% %BONITA_HOME% %CMIS_CONFIG% -Dfile.encoding=UTF-8 -Xshare:auto -Xms512m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError

       

      external\security\jaas-standard.cfg:

      drools-guvnor {

      com.test.droolsproto.loginModule.module.DroolsLoginModule required;

      };

       

      Environment:

      apache-tomcat-6.0.35

      guvnor-5.4.0.Final-tomcat-6.0.war

       

          <jaasConfigName>drools-guvnor</jaasConfigName> leads to the same result.

       

      I suppose I missed something in config/whats it?

       

      Thanks.

       

       

      Details:

      java.lang.NullPointerException

              at org.jboss.solder.config.xml.model.ModelBuilder.validateXmlItem(ModelB

      uilder.java:237)

              at org.jboss.solder.config.xml.model.ModelBuilder.addNodeToResult(ModelB

      uilder.java:102)

              at org.jboss.solder.config.xml.model.ModelBuilder.build(ModelBuilder.jav

      a:88)

              at org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDi

      scovery(XmlConfigExtension.java:93)

              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:597)

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflec

      tions.java:267)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureRefle

      ctionAccess.java:52)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation

      (SecureReflectionAccess.java:137)

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflect

      ions.java:263)

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldM

      ethodImpl.java:170)

              at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(For

      wardingWeldMethod.java:51)

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpe

      cialValue(MethodInjectionPoint.java:154)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.

      java:241)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.

      java:229)

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.jav

      a:207)

              at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractC

      ontainerEvent.java:75)

              at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire

      (AbstractDefinitionContainerEvent.java:46)

              at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBe

      anDiscoveryImpl.java:46)

              at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootst

      rap.java:335)

              at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listen

      er.java:151)

              at org.drools.guvnor.server.repository.SafeWeldListener.contextInitializ

      ed(SafeWeldListener.java:54)

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContex

      t.java:4206)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4

      705)

              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase

      .java:799)

              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77

      9)

              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

       

              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja

      va:675)

              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j

      ava:601)

              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502

      )

              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java

      :324)

              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

      eSupport.java:142)

              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

       

              at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

       

              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463

      )

              at org.apache.catalina.core.StandardService.start(StandardService.java:5

      25)

              at org.apache.catalina.core.StandardServer.start(StandardServer.java:754

      )

              at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

              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:597)

              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Oct 13, 2012 11:58:53 PM org.apache.catalina.core.StandardContext start

      SEVERE: Error listenerStart

      Oct 13, 2012 11:58:53 PM org.apache.catalina.core.StandardContext start

      SEVERE: Context [/guvnor-5.4.0.Final-tomcat-6.0] startup failed due to previous

      errors