7 Replies Latest reply on Nov 13, 2008 5:29 AM by jaikiran pai

    own jaas domain not working

    Markus Schulz Newbie

      hello,

      I'm trying to use a self defined jaas domain policy inside my ejb3 tests with embedded jboss. But i got only "invalid user":

       [testng] javax.ejb.EJBAccessException: Invalid User
       [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:142)
       [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
       [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
       [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
       [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
       [testng] at $Proxy84.tarifiere(Unknown Source)
       [testng] at org.sis.assek.unittest.tarife.afa.nordvers.rs2008.TestRS2008Service.testTarifierung(TestRS2008Service.java:65)
       [testng] ... Removed 22 stack frames
      


      i have deployed my-login-service.xml in the bootstrap/deploy directory with the following content:

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
       name="assek2:service=DynamicLoginConfig">
       <attribute name="AuthConfig">
       my-login-config.xml
       </attribute>
       <depends optional-attribute-name="LoginConfigService">
       jboss.security:service=XMLLoginConfig
       </depends>
       <depends optional-attribute-name="SecurityManagerService">
       jboss.security:service=JaasSecurityManager
       </depends>
       </mbean>
      </server>
      


      bootstrap/deploy/my-login-config.xml looks like:
      <policy>
       <application-policy name="assek2logins">
       <authentication>
       <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
       flag="sufficient">
       <module-option name="usersProperties">META-INF/users.properties</module-option>
       <module-option name="rolesProperties">META-INF/roles.properties</module-option>
       <module-option name="unauthenticatedIdentity">Gast</module-option>
       </login-module>
       <login-module
       code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
       flag="sufficient">
       <module-option name="unauthenticatedIdentity">
       Gast
       </module-option>
       <module-option name="dsJndiName">
       java:/assek2Datasource
       </module-option>
       <module-option name="principalsQuery">
       SELECT password FROM logins.login WHERE username=?
       </module-option>
       <module-option name="rolesQuery">
       SELECT typ, 'Roles' FROM logins.login WHERE
       username=?
       </module-option>
       <module-option name="hashAlgorithm">MD5</module-option>
       <module-option name="hashEncoding">hex</module-option>
       </login-module>
       <login-module code="org.jboss.security.ClientLoginModule"
       flag="sufficient">
       <module-option name="restore-login-identity">
       true
       </module-option>
       <module-option name="multi-threaded">
       true
       </module-option>
       </login-module>
       <login-module
       code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
       flag="sufficient">
       <module-option name="unauthenticatedIdentity">
       Gast
       </module-option>
       <module-option name="dsJndiName">
       java:/assek2FipsAfaEmailDatasource
       </module-option>
       <module-option name="principalsQuery">
       SELECT password FROM afa_email_logins WHERE login=?
       </module-option>
       <module-option name="rolesQuery">
       SELECT gruppe, 'Roles' FROM afa_portal_logins WHERE
       login=?
       </module-option>
       <module-option name="hashAlgorithm">MD5</module-option>
       <module-option name="hashEncoding">hex</module-option>
       </login-module>
       </authentication>
       </application-policy>
      
      </policy>
      



      My test/bootstrap looks like:
       Bootstrap bootstrap = Bootstrap.getInstance();
       if (!bootstrap.isStarted()) {
       bootstrap.bootstrap();
       }
       // Create InitialContext from jndi.properties
       Properties env = new Properties();
       env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.LoginInitialContextFactory");
       //env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099/");
       env.setProperty(Context.SECURITY_PRINCIPAL, "root");
       env.setProperty(Context.SECURITY_CREDENTIALS, "*root*");
       env.setProperty(Context.SECURITY_PROTOCOL, "assek2logins");
       env.setProperty(Context.SECURITY_AUTHENTICATION, "simple");
       this.jndi = new InitialContext(env);
      


      The lookup works but calling functions on my ejbs drops the above error.
      There are no log messages regarding my jaas domain during bootstrap, therefore it looks like it was ignored?!?

      any further hints?


        • 1. Re: own jaas domain not working
          Markus Schulz Newbie

          a little further success, i've removed the

          <login-module code="org.jboss.security.ClientLoginModule"../>

          Modul (i think i dont need it on server side?) and now i can see database access. But still i got "invalid user" for each method.

          any further hints?

          • 2. Re: own jaas domain not working
            Markus Schulz Newbie

            the complete backtrace i got:

             [testng] javax.ejb.EJBAccessException: Invalid User
             [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:142)
             [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
             [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
             [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
             [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
             [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
             [testng] at $Proxy84.SucheAfaPersonen(Unknown Source)
             [testng] at org.sis.assek.unittest.base.TestSuchService.testTarifierung_KeinVP(TestSuchService.java:51)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [testng] at java.lang.reflect.Method.invoke(Method.java:585)
             [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
             [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
             [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
             [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
             [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
             [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
             [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
             [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
             [testng] at org.testng.TestRunner.run(TestRunner.java:495)
             [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
             [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
             [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
             [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
             [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
             [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
             [testng] at org.testng.TestNG.run(TestNG.java:699)
             [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
             [testng] at org.testng.TestNG.main(TestNG.java:802)
            


            • 3. Re: own jaas domain not working
              Kamil Demecki Novice

              I have the same problem.

              After couple days tries of jaas logging in jboss embedded I give up.

              There was <security-domain>java:/jaas/xxx</security-domain> in module META-INF/jboss.xml. After comment this jboss embedded working but it is code which target is ear, I cant comment it on every time to run test and tests should be also running from maven which needs jars.

              Will I have to pack another jar without this file to run tests with jboss - I/O is now bottleneck and aim unit test is seed up development no slow ;>

              I believe there is way to proper authorization with jboss embedded.

              • 4. Re: own jaas domain not working
                Markus Schulz Newbie

                i can't comment the jaas declaration for my EJBs cause i need a valid UserPrinciple for many functions.

                I hope someone can help us, cause working jaas was on the embedded jboss feature list.

                • 5. Re: own jaas domain not working
                  Markus Schulz Newbie

                  i've tracked down it a little bit with trace-Logging.
                  I've switched to use policy name "other", cause:

                  TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin getAppConfigurationEntry(other), size=4

                  he always use this domain (don't know why it don't try my self defined one).
                  Therefore i've disabled the default "other" policy (bootstrap/conf/login-config.xml) and renamed my one from assek2logins to other.

                  the jndi logins works as you can see in the logs:

                  env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
                  env.setProperty(Context.SECURITY_PRINCIPAL, username);
                  env.setProperty(Context.SECURITY_CREDENTIALS, password);
                  env.setProperty(Context.SECURITY_PROTOCOL, "other");
                  this.jndi = new InitialContext(this.GetCredentials(env);

                  furthermore i've found a hint:
                  SecurityClient client = SecurityClientFactory.getSecurityClient();
                  client.setJAAS("other", handler);
                  client.login();
                  handler was a normal CallbackHandler.

                  now i got from a simple ejb-function call:

                  ... starting EJBs and hibernate stuff ...
                  
                   [testng] INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: org.sis.assek.tarife.afa.nordvers.uv2008.ws.UV2008Impl ejbName: tarif_afa_nordvers_uv2008
                   [testng] WARN [org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory] TIMER SERVICE IS NOT INSTALLED
                   [testng] TRACE [org.jboss.security.jacc.JBossPolicyConfiguration] commit
                   [testng] TRACE [org.jboss.security.jacc.JBossPolicyConfiguration] ctor, contextID=assek2.jar
                   [testng] TRACE [org.jboss.security.jacc.JBossPolicyConfiguration] addToRole, roleName=TOP-Ten, p=[suchservice,role-ref=afavp]
                   [testng] TRACE [org.jboss.security.jacc.JBossPolicyConfiguration] addToUncheckedPolicy, p=(javax.security.jacc.EJBMethodPermission sitzungsspeicher getEJBObject,Home)[Home:getEJBObject()]
                   [testng] TRACE [org.jboss.security.jacc.JBossPolicyConfiguration] commit
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin getAppConfigurationEntry(other), size=4
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] End getAppConfigurationEntry(other), authInfo=AppConfigurationEntry[]:
                   [testng] [0]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.UsersRolesLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=rolesProperties, value=META-INF/roles.properties
                   [testng] name=usersProperties, value=META-INF/users.properties
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] [1]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=hashEncoding, value=hex
                   [testng] name=rolesQuery, value=SELECT typ, 'Roles' FROM logins.login WHERE
                   [testng] username=?
                   [testng] name=principalsQuery, value=SELECT password FROM logins.login WHERE username=?
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] name=hashAlgorithm, value=MD5
                   [testng] name=dsJndiName, value=java:/assek2Datasource
                   [testng] [2]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=hashEncoding, value=hex
                   [testng] name=rolesQuery, value=SELECT gruppe, 'Roles' FROM afa_portal_logins WHERE
                   [testng] login=?
                   [testng] name=principalsQuery, value=SELECT password FROM afa_email_logins WHERE login=?
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] name=hashAlgorithm, value=MD5
                   [testng] name=dsJndiName, value=java:/assek2FipsAfaEmailDatasource
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] initialize
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Security domain: other
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Saw unauthenticatedIdentity=Gast
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/users.properties
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Properties file=file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/users.properties, defaults=null
                   [testng] DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[root, mf]
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/roles.properties
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Properties file=file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/roles.properties, defaults=null
                   [testng] DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[mf.Roles, root.Roles]
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] login
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] User 'root' authenticated, loginOk=true
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] commit, loginOk=true
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Checking user: root.Roles, roles string: root,Administrator
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Adding to Roles: root,Administrator
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Checking user: mf.Roles, roles string: Vertriebspartner
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin getAppConfigurationEntry(other), size=4
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] End getAppConfigurationEntry(other), authInfo=AppConfigurationEntry[]:
                   [testng] [0]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.UsersRolesLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=rolesProperties, value=META-INF/roles.properties
                   [testng] name=usersProperties, value=META-INF/users.properties
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] [1]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=hashEncoding, value=hex
                   [testng] name=rolesQuery, value=SELECT typ, 'Roles' FROM logins.login WHERE
                   [testng] username=?
                   [testng] name=principalsQuery, value=SELECT password FROM logins.login WHERE username=?
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] name=hashAlgorithm, value=MD5
                   [testng] name=dsJndiName, value=java:/assek2Datasource
                   [testng] [2]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=hashEncoding, value=hex
                   [testng] name=rolesQuery, value=SELECT gruppe, 'Roles' FROM afa_portal_logins WHERE
                   [testng] login=?
                   [testng] name=principalsQuery, value=SELECT password FROM afa_email_logins WHERE login=?
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] name=hashAlgorithm, value=MD5
                   [testng] name=dsJndiName, value=java:/assek2FipsAfaEmailDatasource
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] initialize
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Security domain: other
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Saw unauthenticatedIdentity=Gast
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/users.properties
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Properties file=file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/users.properties, defaults=null
                   [testng] DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[root, mf]
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/roles.properties
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Properties file=file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/roles.properties, defaults=null
                   [testng] DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[mf.Roles, root.Roles]
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] login
                   [testng] handle 0: callbacks[0] instanceof NameCallback
                   [testng] setting username to Carrier
                   [testng] handle 1: callbacks[1] instanceof PasswordCallback
                   [testng] setting username to Carrier
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] User 'root' authenticated, loginOk=true
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] commit, loginOk=true
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Checking user: root.Roles, roles string: root,Administrator
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Adding to Roles: root,Administrator
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Checking user: mf.Roles, roles string: Vertriebspartner
                   [testng] JNDI = javax.naming.InitialContext@f0dcb3
                   [testng] [TestClass] Creating TestClass for [ClassImpl org.sis.assek.unittest.base.service.TestSuchService]
                   [testng] [TestClass] Adding method org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP() on TestClass class org.sis.assek.unittest.base.service.TestSuchService
                   [testng] [XmlMethodSelector] Including method org.sis.assek.unittest.base.service.testTarifierung_KeinVP()
                   [testng] [SuiteRunner] Created 1 TestRunners
                   [testng] [TestRunner] Running test AllTests on 1 classes, included groups:[] excluded groups:[]
                   [testng] [TestClass]
                   [testng] ======
                   [testng] TESTCLASS: org.sis.assek.unittest.base.service.TestSuchService
                   [testng] [TestClass] Test : org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP()
                   [testng] [TestClass]
                   [testng] ======
                   [testng] [TestRunner] WILL BE RUN IN RANDOM ORDER:
                   [testng] [TestRunner] org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP()
                   [testng] [TestRunner] WILL BE RUN SEQUENTIALLY:
                   [testng] [TestRunner] ===
                   [testng] [TestRunner] Found 1 applicable methods
                   [testng] [Invoker 4952321] Invoking org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP
                   [testng] TRACE [org.jboss.security.plugins.JaasSecurityManager] Constructing
                   [testng] DEBUG [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler@b846c6
                   [testng] DEBUG [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] CachePolicy set to: org.jboss.util.TimedCachePolicy@2e749c
                   [testng] DEBUG [org.jboss.security.integration.JNDIBasedSecurityManagement] setCachePolicy, c=org.jboss.util.TimedCachePolicy@2e749c
                   [testng] TRACE [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] Begin isValid, principal:null, cache info: null
                   [testng] TRACE [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] defaultLogin, principal=null
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin getAppConfigurationEntry(java:), size=4
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] getAppConfigurationEntry(java:), no entry in appConfigs, tyring parentCont: null
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] getAppConfigurationEntry(java:), no entry in parentConfig, trying: other
                   [testng] TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] End getAppConfigurationEntry(java:), authInfo=AppConfigurationEntry[]:
                   [testng] [0]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.UsersRolesLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=rolesProperties, value=META-INF/roles.properties
                   [testng] name=usersProperties, value=META-INF/users.properties
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] [1]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=hashEncoding, value=hex
                   [testng] name=rolesQuery, value=SELECT typ, 'Roles' FROM logins.login WHERE
                   [testng] username=?
                   [testng] name=principalsQuery, value=SELECT password FROM logins.login WHERE username=?
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] name=hashAlgorithm, value=MD5
                   [testng] name=dsJndiName, value=java:/assek2Datasource
                   [testng] [2]
                   [testng] LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                   [testng] ControlFlag: Anmeldemodul-Steuerflag: sufficient
                   [testng] Options:name=hashEncoding, value=hex
                   [testng] name=rolesQuery, value=SELECT gruppe, 'Roles' FROM afa_portal_logins WHERE
                   [testng] login=?
                   [testng] name=principalsQuery, value=SELECT password FROM afa_email_logins WHERE login=?
                   [testng] name=unauthenticatedIdentity, value=Gast
                   [testng] name=hashAlgorithm, value=MD5
                   [testng] name=dsJndiName, value=java:/assek2FipsAfaEmailDatasource
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] initialize
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Security domain: other
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Saw unauthenticatedIdentity=Gast
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/users.properties
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Properties file=file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/users.properties, defaults=null
                   [testng] DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[root, mf]
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/roles.properties
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Properties file=file:/home/nias/projekte/assek2/trunk/testng/bootstrap/deploy/META-INF/roles.properties, defaults=null
                   [testng] DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[mf.Roles, root.Roles]
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] login
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Authenticating as unauthenticatedIdentity=Gast
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] User 'Gast' authenticated, loginOk=true
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] commit, loginOk=true
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Checking user: root.Roles, roles string: root,Administrator
                   [testng] TRACE [org.jboss.security.auth.spi.UsersRolesLoginModule] Checking user: mf.Roles, roles string: Vertriebspartner
                   [testng] TRACE [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] defaultLogin, lc=javax.security.auth.login.LoginContext@1a5fc52, subject=Subject(15497491).principals=org.jboss.security.SimplePrincipal@16843829(Gast)org.jboss.security.SimpleGroup@29062064(Roles(members))
                   [testng] TRACE [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] updateCache, inputSubject=Subject(15497491).principals=org.jboss.security.SimplePrincipal@16843829(Gast)org.jboss.security.SimpleGroup@29062064(Roles(members)), cacheSubject=Subject(19624427).principals=org.jboss.security.SimplePrincipal@16843829(Gast)org.jboss.security.SimpleGroup@29062064(Roles(members))
                   [testng] TRACE [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] Inserted cache info: org.jboss.security.plugins.auth.JaasSecurityManagerBase$DomainInfo@fd5609[Subject(19624427).principals=org.jboss.security.SimplePrincipal@16843829(Gast)org.jboss.security.SimpleGroup@29062064(Roles(members)),credential.class=null,expirationTime=1226399162748]
                   [testng] TRACE [jboss.security.plugins.auth.JaasSecurityManagerBase.java:] End isValid, true
                   [testng] TRACE [org.jboss.security.integration.JNDIBasedSecurityManagement] Exception in getting audit mgr
                   [testng] java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
                   [testng] at org.jboss.security.integration.JNDIBasedSecurityManagement.getAuditManager(JNDIBasedSecurityManagement.java:106)
                   [testng] at org.jboss.security.plugins.JBossSecurityContext.getAuditManager(JBossSecurityContext.java:161)
                   [testng] at org.jboss.security.integration.ejb.SecurityHelper.audit(SecurityHelper.java:78)
                   [testng] at org.jboss.security.integration.ejb.EJBAuthenticationHelper.isValid(EJBAuthenticationHelper.java:89)
                   [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:141)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                   [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
                   [testng] at $Proxy81.SucheAfaPersonen(Unknown Source)
                   [testng] at org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP(TestSuchService.java:53)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   [testng] at java.lang.reflect.Method.invoke(Method.java:585)
                   [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
                   [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
                   [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
                   [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
                   [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
                   [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
                   [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
                   [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
                   [testng] at org.testng.TestRunner.run(TestRunner.java:495)
                   [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
                   [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
                   [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
                   [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
                   [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
                   [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
                   [testng] at org.testng.TestNG.run(TestNG.java:699)
                   [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
                   [testng] at org.testng.TestNG.main(TestNG.java:802)
                   [testng] TRACE [org.jboss.security.SecurityRolesAssociation] Setting threadlocal:{}
                   [testng] TRACE [org.jboss.security.integration.JNDIBasedSecurityManagement] Exception in getting authorization mgr
                   [testng] java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
                   [testng] at org.jboss.security.integration.JNDIBasedSecurityManagement.getAuthorizationManager(JNDIBasedSecurityManagement.java:145)
                   [testng] at org.jboss.security.plugins.JBossSecurityContext.getAuthorizationManager(JBossSecurityContext.java:173)
                   [testng] at org.jboss.security.integration.ejb.EJBAuthorizationHelper.authorize(EJBAuthorizationHelper.java:78)
                   [testng] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:175)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                   [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
                   [testng] at $Proxy81.SucheAfaPersonen(Unknown Source)
                   [testng] at org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP(TestSuchService.java:53)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   [testng] at java.lang.reflect.Method.invoke(Method.java:585)
                   [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
                   [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
                   [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
                   [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
                   [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
                   [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
                   [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
                   [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
                   [testng] at org.testng.TestRunner.run(TestRunner.java:495)
                   [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
                   [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
                   [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
                   [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
                   [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
                   [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
                   [testng] at org.testng.TestNG.run(TestNG.java:699)
                   [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
                   [testng] at org.testng.TestNG.main(TestNG.java:802)
                   [testng] TRACE [org.jboss.security.integration.ejb.EJBAuthorizationHelper] Error in authorization:
                   [testng] java.lang.NullPointerException
                   [testng] at org.jboss.security.integration.ejb.EJBAuthorizationHelper.authorize(EJBAuthorizationHelper.java:97)
                   [testng] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:175)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                   [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
                   [testng] at $Proxy81.SucheAfaPersonen(Unknown Source)
                   [testng] at org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP(TestSuchService.java:53)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   [testng] at java.lang.reflect.Method.invoke(Method.java:585)
                   [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
                   [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
                   [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
                   [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
                   [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
                   [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
                   [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
                   [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
                   [testng] at org.testng.TestRunner.run(TestRunner.java:495)
                   [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
                   [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
                   [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
                   [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
                   [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
                   [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
                   [testng] at org.testng.TestNG.run(TestNG.java:699)
                   [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
                   [testng] at org.testng.TestNG.main(TestNG.java:802)
                   [testng] TRACE [org.jboss.security.integration.JNDIBasedSecurityManagement] Exception in getting audit mgr
                   [testng] java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
                   [testng] at org.jboss.security.integration.JNDIBasedSecurityManagement.getAuditManager(JNDIBasedSecurityManagement.java:106)
                   [testng] at org.jboss.security.plugins.JBossSecurityContext.getAuditManager(JBossSecurityContext.java:161)
                   [testng] at org.jboss.security.integration.ejb.SecurityHelper.authorizationAudit(SecurityHelper.java:63)
                   [testng] at org.jboss.security.integration.ejb.EJBAuthorizationHelper.authorize(EJBAuthorizationHelper.java:107)
                   [testng] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:175)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                   [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
                   [testng] at $Proxy81.SucheAfaPersonen(Unknown Source)
                   [testng] at org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP(TestSuchService.java:53)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   [testng] at java.lang.reflect.Method.invoke(Method.java:585)
                   [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
                   [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
                   [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
                   [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
                   [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
                   [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
                   [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
                   [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
                   [testng] at org.testng.TestRunner.run(TestRunner.java:495)
                   [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
                   [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
                   [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
                   [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
                   [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
                   [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
                   [testng] at org.testng.TestNG.run(TestNG.java:699)
                   [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
                   [testng] at org.testng.TestNG.main(TestNG.java:802)
                   [testng] javax.ejb.EJBAccessException: Caller unauthorized
                   [testng] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:184)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                   [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
                   [testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                   [testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
                   [testng] at $Proxy81.SucheAfaPersonen(Unknown Source)
                   [testng] at org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP(TestSuchService.java:53)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   [testng] at java.lang.reflect.Method.invoke(Method.java:585)
                   [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
                   [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
                   [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
                   [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
                   [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
                   [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
                   [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
                   [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
                   [testng] at org.testng.TestRunner.run(TestRunner.java:495)
                   [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
                   [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
                   [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
                   [testng] *********** INVOKED METHODS
                   [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
                   [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
                   [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
                   [testng] at org.testng.TestNG.run(TestNG.java:699)
                   [testng] org.sis.assek.unittest.base.service.TestSuchService.testTarifierung_KeinVP() 21823376
                   [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
                   [testng] at org.testng.TestNG.main(TestNG.java:802)
                   [testng] ***********
                  


                  • 6. Re: own jaas domain not working
                    Markus Schulz Newbie

                    as you can see, for the jndi login he uses the username "root" with password, but for the ejb access he use "Gast".
                    How can i force him to use the right username?

                    • 7. Re: own jaas domain not working
                      jaikiran pai Master

                      Try this:

                      SecurityClient client = SecurityClientFactory.getSecurityClient();
                      client.setSimple(username, password);
                      client.setJAAS("other", handler);
                      client.login();