5 Replies Latest reply on May 22, 2017 4:40 PM by Harit Himanshu

    Migrating from AS7 to Wildfly10, Could not login, page spins and nothing happens

    Harit Himanshu Newbie

      We have our application running in AS7 and in standalone.xml, we have a login method defined as following

       

      <subsystem xmlns="urn:jboss:domain:security:1.1">
        <security-domains>
        <security-domain name="form-auth" cache-type="default">
        <authentication>
        <login-module code="com.myorg.security.auth.login.MyOrgLoginModule" flag="required"/>
        </authentication>
        </security-domain>
        <security-domain name="other" cache-type="default">
        <authentication>
        <login-module code="com.myorg.security.auth.login.MyOrgLoginModule" flag="required"/>
        </authentication>
        </security-domain>
        </security-domains>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
      <subsystem xmlns="urn:jboss:domain:transactions:1.1">
        <core-environment>
        <process-id>
        <uuid/>
        </process-id>
        </core-environment>
        <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
        <coordinator-environment default-timeout="18000"/>
      </subsystem>
      
      

      With this we are able to get the form page and when we provide user/password, it authenticates and let users see the data.

       

      Now, we are migrating this application on Wildfly10 and when we start the server, the main page comes up, but then we hit Login button with username/password, the browser status says "Waiting for <IP_ADDRESS>" and nothing happens, there are no log entires either.

      Additionally, I tried to hit other endpoints (which are protected), and I see redirect to login page

       

      curl -s -D - http://localhost:8080/myorg/archiveLogs -o /dev/null
      HTTP/1.1 302 Found
      Cache-control: private
      X-Powered-By: Undertow/1
      Server: WildFly/10
      X-XSS-Protection: 1; mode=block
      X-Frame-Options: sameorigin
      Location: http://localhost:8080/myorg/myorglogin?t=1
      Date: Fri, 19 May 2017 19:37:58 GMT
      Connection: keep-alive
      Strict-Transport-Security: max-age=31536000; includeSubDomains
      X-Content-Type-Options: nosniff
      Content-Type: text/html
      Content-Length: 0
      Content-Language: en-US
      

       

      Which means other endpoints are serving as well and responding too, but login page never comes back when the form is submitted. I have spent 2 days on this and not sure how to fix or further debug this either.

      Any help is greatly appreciated.

      Thanks a lot

        • 1. Re: Migrating from AS7 to Wildfly10, Could not login, page spins and nothing happens
          jaikiran pai Master

          Take thread dumps on server side to see if anything at all is going on during that time. See this for details on how to take thread dumps ThreadDump

          • 2. Re: Migrating from AS7 to Wildfly10, Could not login, page spins and nothing happens
            Claudio Miranda Apprentice

            Hi, I suggest to enable debug/trace level logging on the following categories, to better understand the flow of event on login attempts.

            • org.jboss.security
            • org.jboss.web.tomcat.security
            • org.apache.catalina
            • 3. Re: Migrating from AS7 to Wildfly10, Could not login, page spins and nothing happens
              Harit Himanshu Newbie

              Thanks, please correct me if my understanding is correct. Did you mean to add

               

              org.jboss.security=TRACE

              org.jboss.web.tomcat.security=TRACE

              org.apache.catalina=TRACE

               

              in

              ${myproject}/configuration/logging.properties

               

              ?

              • 4. Re: Migrating from AS7 to Wildfly10, Could not login, page spins and nothing happens
                Claudio Miranda Apprentice

                The logging.properties is not used for application level logging, add these log categories to the logging subsystem as in the example below:

                <logger category="org.jboss.security">

                    <level name="TRACE"/>

                </logger>

                <logger category="org.jboss.web.tomcat.security">

                    <level name="TRACE"/>

                </logger>

                <logger category="org.apache.catalina">

                    <level name="DEBUG"/>

                </logger>

                <logger category="org.picketbox">

                    <level name="DEBUG"/>

                </logger>

                 

                • 5. Re: Migrating from AS7 to Wildfly10, Could not login, page spins and nothing happens
                  Harit Himanshu Newbie

                  Thanks for your help, I enabled logging and saw the following log when application start

                   

                  2017-05-22 20:26:07,893 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:07,893 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:07,894 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00314: commit, contextID: productdocs.war

                  2017-05-22 20:26:07,894 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:08,106 TRACE [org.jboss.security] (ServerService Thread Pool -- 64) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:08,107 TRACE [org.jboss.security] (ServerService Thread Pool -- 64) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:08,108 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:08,110 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00312: addToUncheckedPolicy, permission: ("javax.security.jacc.WebResourcePermission" "/")

                  2017-05-22 20:26:08,110 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action addToUncheckedPolicy: open

                  2017-05-22 20:26:08,110 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00312: addToUncheckedPolicy, permission: ("javax.security.jacc.WebUserDataPermission" "/")

                  2017-05-22 20:26:08,110 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action addToUncheckedPolicy: open

                  2017-05-22 20:26:08,110 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00312: addToUncheckedPolicy, permission: ("javax.security.jacc.WebUserDataPermission" "/")

                  2017-05-22 20:26:08,110 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action addToUncheckedPolicy: open

                  2017-05-22 20:26:08,111 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00310: addToRole, permission: ("javax.security.jacc.WebRoleRefPermission" "" "**")

                  2017-05-22 20:26:08,111 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:08,111 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00314: commit, contextID: productdocs.war

                  2017-05-22 20:26:08,111 TRACE [org.jboss.security] (MSC service thread 1-7) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:11,045 TRACE [org.jboss.security] (MSC service thread 1-5) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:11,046 TRACE [org.jboss.security] (MSC service thread 1-5) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:11,047 TRACE [org.jboss.security] (MSC service thread 1-5) PBOX00314: commit, contextID: myorg.ear

                  2017-05-22 20:26:11,047 TRACE [org.jboss.security] (MSC service thread 1-5) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:11,047 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:11,047 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00314: commit, contextID: myorg.ear

                  2017-05-22 20:26:11,047 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:11,128 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:11,128 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:11,128 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00310: addToRole, permission: [DefaultMessage,role-ref=**]

                  2017-05-22 20:26:11,128 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:11,128 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00310: addToRole, permission: [ScenarioSimulateMessage,role-ref=**]

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00310: addToRole, permission: [OptimizationMessage,role-ref=**]

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00310: addToRole, permission: [AdminOperationsMessage,role-ref=**]

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00310: addToRole, permission: [EfOperationMessage,role-ref=**]

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action getContextID: inService

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00316: linkConfiguration, link to contextID: myorg.ear!mdb.jar

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action linkConfiguration: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00314: commit, contextID: myorg.ear!mdb.jar

                  2017-05-22 20:26:11,129 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:11,130 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00314: commit, contextID: myorg.ear

                  2017-05-22 20:26:11,130 TRACE [org.jboss.security] (MSC service thread 1-8) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:12,088 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:12,088 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:12,088 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.loader.sb.AggService,role-ref=**]

                  2017-05-22 20:26:12,089 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,089 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [myorgStartupManager,role-ref=**]

                  2017-05-22 20:26:12,089 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,089 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.persistence.sb.PersistenceService,role-ref=**]

                  2017-05-22 20:26:12,089 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,089 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.globalinput.sb.GlobalInputService,role-ref=**]

                  2017-05-22 20:26:12,090 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.metadata.sb.MetadataService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.loader.sb.DataLoadService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.common.pricingstruct.sb.PricingStructureService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.PreOptService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.admin.sb.TableauQueueService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.metrics.sb.MetricsService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.admin.sb.AdminService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.ScenarioSimulateService,role-ref=**]

                  2017-05-22 20:26:12,091 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.nfc.utils.sb.NSCacheService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.pricelist.sb.PriceListService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.WorksheetService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.pricelist.sb.TransformationService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.visualization.common.sb.VisualizationManagerService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.common.folder.sb.FolderService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.instructions.sb.InstructionService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.bizrulemgmt.sb.PricingRuleService,role-ref=**]

                  2017-05-22 20:26:12,092 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,093 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.ScenarioService,role-ref=**]

                  2017-05-22 20:26:12,093 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.baselinemgmt.sb.GenBaselineService,role-ref=**]

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.loader.sb.StatusService,role-ref=**]

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.entities.sb.ObjectService,role-ref=**]

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.baselinemgmt.sb.BaselineService,role-ref=**]

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.common.message.sb.MessageService,role-ref=**]

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,094 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.sb.DocumentService,role-ref=**]

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.DimensionGroupService,role-ref=**]

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.transaction.sb.TransactionService,role-ref=**]

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.WorksheetGridService,role-ref=**]

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.regression.sb.RegAsyncService,role-ref=**]

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,095 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.efficientfrontier.sb.EFGenService,role-ref=**]

                  2017-05-22 20:26:12,096 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,096 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.documentmgmt.scenario.sb.OptimizationService,role-ref=**]

                  2017-05-22 20:26:12,096 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,096 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.regression.sb.RegressionService,role-ref=**]

                  2017-05-22 20:26:12,096 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.visualization.common.sb.ReportManagerService,role-ref=**]

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.efficientfrontier.sb.EfficientFrontierService,role-ref=**]

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.common.async.sb.QueueService,role-ref=**]

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00310: addToRole, permission: [com.myorg.security.sb.SecurityService,role-ref=**]

                  2017-05-22 20:26:12,097 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getContextID: inService

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00316: linkConfiguration, link to contextID: myorg.ear!services.jar

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action linkConfiguration: open

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00314: commit, contextID: myorg.ear!services.jar

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00314: commit, contextID: myorg.ear

                  2017-05-22 20:26:12,098 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:23,769 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:23,770 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:23,771 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getContextID: inService

                  2017-05-22 20:26:23,771 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:23,772 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:23,772 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00316: linkConfiguration, link to contextID: myorg.ear!webapp.war

                  2017-05-22 20:26:23,772 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action linkConfiguration: open

                  2017-05-22 20:26:23,773 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:23,773 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00314: commit, contextID: myorg.ear!webapp.war

                  2017-05-22 20:26:23,774 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:23,774 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00314: commit, contextID: myorg.ear

                  2017-05-22 20:26:23,774 TRACE [org.jboss.security] (MSC service thread 1-3) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:31,335 TRACE [org.jboss.security] (ServerService Thread Pool -- 80) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:31,369 TRACE [org.jboss.security] (ServerService Thread Pool -- 80) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:31,370 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:31,375 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00312: addToUncheckedPolicy, permission: ("javax.security.jacc.WebResourcePermission" "/")

                  2017-05-22 20:26:31,375 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action addToUncheckedPolicy: open

                  2017-05-22 20:26:31,375 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00312: addToUncheckedPolicy, permission: ("javax.security.jacc.WebUserDataPermission" "/")

                  2017-05-22 20:26:31,375 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action addToUncheckedPolicy: open

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00312: addToUncheckedPolicy, permission: ("javax.security.jacc.WebUserDataPermission" "/")

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action addToUncheckedPolicy: open

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00310: addToRole, permission: ("javax.security.jacc.WebRoleRefPermission" "t2Servlet" "**")

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00310: addToRole, permission: ("javax.security.jacc.WebRoleRefPermission" "" "**")

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action addToRole: open

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action getContextID: inService

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action getPolicyConfiguration: open

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00316: linkConfiguration, link to contextID: myorg.ear!webapp.war

                  2017-05-22 20:26:31,376 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action linkConfiguration: open

                  2017-05-22 20:26:31,379 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action getContextID: open

                  2017-05-22 20:26:31,379 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00314: commit, contextID: myorg.ear!webapp.war

                  2017-05-22 20:26:31,379 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action commit: inService

                  2017-05-22 20:26:31,379 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00314: commit, contextID: myorg.ear

                  2017-05-22 20:26:31,379 TRACE [org.jboss.security] (MSC service thread 1-1) PBOX00337: nextState for action commit: inService

                   

                  and when clicked on login, the following trace is made.

                   

                  2017-05-22 20:26:47,159 TRACE [org.jboss.security] (default task-1) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:47,762 TRACE [org.jboss.security] (default task-2) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:48,961 TRACE [org.jboss.security] (default task-3) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,048 TRACE [org.jboss.security] (default task-4) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,051 TRACE [org.jboss.security] (default task-7) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,051 TRACE [org.jboss.security] (default task-6) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,052 TRACE [org.jboss.security] (default task-8) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,052 TRACE [org.jboss.security] (default task-5) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,065 TRACE [org.jboss.security] (default task-9) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,076 TRACE [org.jboss.security] (default task-10) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,091 TRACE [org.jboss.security] (default task-11) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,105 TRACE [org.jboss.security] (default task-12) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,114 TRACE [org.jboss.security] (default task-13) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,129 TRACE [org.jboss.security] (default task-14) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,186 TRACE [org.jboss.security] (default task-17) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,186 TRACE [org.jboss.security] (default task-15) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,186 TRACE [org.jboss.security] (default task-16) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,187 TRACE [org.jboss.security] (default task-18) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,187 TRACE [org.jboss.security] (default task-19) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,195 TRACE [org.jboss.security] (default task-20) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,236 TRACE [org.jboss.security] (default task-21) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,291 TRACE [org.jboss.security] (default task-22) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:49,328 TRACE [org.jboss.security] (default task-23) PBOX00354: Setting security roles ThreadLocal: null

                  2017-05-22 20:26:53,193 TRACE [org.jboss.security] (default task-24) PBOX00221: Begin getAppConfigurationEntry(myorgLogin), size: 4

                  2017-05-22 20:26:53,193 TRACE [org.jboss.security] (default task-24) PBOX00222: getAppConfigurationEntry(myorgLogin), no entry found, trying parent config null

                  2017-05-22 20:26:53,193 TRACE [org.jboss.security] (default task-24) PBOX00223: getAppConfigurationEntry(myorgLogin), no entry in parent config, trying default other

                  2017-05-22 20:26:53,196 TRACE [org.jboss.security] (default task-24) PBOX00224: End getAppConfigurationEntry(myorgLogin), AuthInfo: AppConfigurationEntry[]:

                  2017-05-22 20:26:53,243 TRACE [org.jboss.security] (default task-24) PBOX00354: Setting security roles ThreadLocal: {}

                  2017-05-22 20:26:53,247 TRACE [org.jboss.security] (default task-24) PBOX00354: Setting security roles ThreadLocal: null

                   

                  I am not sure what is going wrong here, anything that you could point towards? Thanks again for your help