5 Replies Latest reply on Feb 19, 2014 9:57 AM by Troy Bronzan

    Problems with authentication with WildFly

    Troy Bronzan Newbie

      Hello,

       

      We're in the process of migrating our application from Glassfish 3.1.2 to WildFly and I'm having some problems with getting authentication to work.  Users and roles are defined in the database and when I try to log in to the application it fails and I get no reason as to why it fails.  Using the sql profiler I can see that the principalsQuery gets called so I know it's connected to the database properly.  I have a feeling it's not hashing the password properly.  The password is an MD5 hash.  The rolesQuery never gets called so it's safe to say it's not validating the password properly.  Unfortunately there's no information at all in the server log file when the authentication fails.

       

      users table

      CREATE TABLE [dbo].[users]
      (
      [primarykey] [int] NOT NULL IDENTITY(1, 1),
      [id] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
      [description] [varchar] (80) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
      [abbreviation] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
      [password] [varbinary] (32) NULL,
      [email] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
      [updateversion] [int] NOT NULL CONSTRAINT [DF_users_updateversion] DEFAULT 0
      ) ON [PRIMARY]
      
      

       

      standalone.xml:

                      <security-domain name="app" cache-type="default">
                          <authentication>
                              <login-module code="Database" flag="required">
                                  <module-option name="dsJndiName" value="java:jboss/jdbc/foo"/>
                                  <module-option name="principalsQuery" value="SELECT password FROM users WHERE id = ?"/>
                                  <module-option name="rolesQuery" value="SELECT 'log_in_web_portal' as 'role'"/> <!-- hard code role for now -->
                                  <module-option name="hashAlgorithm" value="MD5"/>
                                  <module-option name="hashEncoding" value="base64"/>
                              </login-module>
                              <login-module code="RoleMapping" flag="required">
                                  <module-option name="rolesProperties" value="file:${jboss.server.config.dir}/app.properties"/>
                                  <module-option name="replaceRole" value="false"/>
                              </login-module>
                          </authentication>
                      </security-domain>
      
      

       

      web.xml

      <login-config>
           <auth-method>FORM</auth-method>
           <form-login-config>
                <form-login-page>/login.jsp</form-login-page>
                <form-error-page>/login.jsp?errorMessage=errorLoginMessage</form-error-page>
           </form-login-config>
      </login-config>
      
      

       

      jboss-web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
        <security-domain>app</security-domain>
      </jboss-web>
      
      
        • 1. Re: Problems with authentication with WildFly
          Stephen Coy Master

          Change the password data type from varbinary to varchar to see if that has anything to do with it.

          1 of 1 people found this helpful
          • 2. Re: Problems with authentication with WildFly
            Darran Lofthouse Master

            I would also suggest enabling TRACE logging for 'org.jboss.security' that way you should get additional information in your server.log during the authentication process.

            1 of 1 people found this helpful
            • 3. Re: Problems with authentication with WildFly
              Troy Bronzan Newbie

              I changed password to be a varchar and generated the password different and it looks like that is working.  Now there seems to a problem assigning roles to the principal because I'm getting a 403. I removed <login-module code="RoleMapping" flag="required"> from standalone.xml because the login fails completely with it.  It seems to be trying to assign roles to the principal, but something must not be right with how I'm doing it.

               

              sun-application.xml used in glassfish

               

              <security-role-mapping>
                   <role-name>log_in_web_portal</role-name>
                   <group-name>log_in_web_portal</role-name>
              </security-role-mapping>
              

               

              The results from rolesQuery looks like this:

               

              Role              RoleGroup         id
              ----------------- ----------------- ---------
              log_in_web_portal log_in_web_portal SuperUser
              

               

              The trace is as follows:

               

              LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
              ControlFlag: LoginModuleControlFlag: required
              Options:
              name=hashCharset, value=UTF-8
              name=hashAlgorithm, value=MD5
              name=principalsQuery, value=SELECT Password FROM foo.dbo.users WHERE id = ?
              name=hashEncoding, value=base64
              name=dsJndiName, value=java:jboss/jdbc/foo
              name=rolesQuery, value=SELECT * FROM foo.dbo.userIdPermissionsView WHERE id = ?
              
              
              2014-02-18 12:19:13,275 TRACE [org.jboss.security] (default task-1) PBOX000236: Begin initialize method
              2014-02-18 12:19:13,275 DEBUG [org.jboss.security] (default task-1) PBOX000281: Password hashing activated, algorithm: MD5, encoding: base64, charset: UTF-8, callback: null, storeCallBack: null
              2014-02-18 12:19:13,275 TRACE [org.jboss.security] (default task-1) PBOX000262: Module options [dsJndiName: java:jboss/jdbc/foo, principalsQuery: SELECT Password FROM foo.dbo.users WHERE id = ?, rolesQuery: SELECT * FROM foo.dbo.userIdPermissionsView WHERE id = ?, suspendResume: true]
              2014-02-18 12:19:13,275 TRACE [org.jboss.security] (default task-1) PBOX000240: Begin login method
              2014-02-18 12:19:13,283 TRACE [org.jboss.security] (default task-1) PBOX000263: Executing query SELECT Password FROM foo.dbo.users WHERE id = ? with username superuser
              2014-02-18 12:19:13,284 TRACE [org.jboss.security] (default task-1) PBOX000241: End login method, isValid: true
              2014-02-18 12:19:13,285 TRACE [org.jboss.security] (default task-1) PBOX000242: Begin commit method, overall result: true
              2014-02-18 12:19:13,285 TRACE [org.jboss.security] (default task-1) PBOX000263: Executing query SELECT * FROM foo.dbo.userIdPermissionsView WHERE id = ? with username superuser
              2014-02-18 12:19:13,286 TRACE [org.jboss.security] (default task-1) PBOX000263: Executing query SELECT * FROM foo.dbo.userIdPermissionsView WHERE id = ? with username superuser
              2014-02-18 12:19:13,289 TRACE [org.jboss.security] (default task-1) PBOX000210: defaultLogin, login context: javax.security.auth.login.LoginContext@27f383bf, subject: Subject(1462190445).principals=org.jboss.security.SimplePrincipal@1379436494(superuser)org.jboss.security.SimpleGroup@2103185293(log_in_web_portal(members:log_in_web_portal))org.jboss.security.SimpleGroup@2103185293(CallerPrincipal(members:superuser))
              2014-02-18 12:19:13,290 TRACE [org.jboss.security] (default task-1) PBOX000207: updateCache, input subject: Subject(1462190445).principals=org.jboss.security.SimplePrincipal@1379436494(superuser)org.jboss.security.SimpleGroup@2103185293(log_in_web_portal(members:log_in_web_portal))org.jboss.security.SimpleGroup@2103185293(CallerPrincipal(members:superuser)), cached subject: Subject(2141608900).principals=org.jboss.security.SimplePrincipal@1379436494(superuser)org.jboss.security.SimpleGroup@2103185293(log_in_web_portal(members:log_in_web_portal))org.jboss.security.SimpleGroup@2103185293(CallerPrincipal(members:superuser))
              2014-02-18 12:19:13,290 TRACE [org.jboss.security] (default task-1) PBOX000208: Inserted cache info: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,290 TRACE [org.jboss.security] (default task-1) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,296 TRACE [org.jboss.security] (default task-1) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,297 TRACE [org.jboss.security] (default task-3) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,297 TRACE [org.jboss.security] (default task-3) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,297 TRACE [org.jboss.security] (default task-3) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,297 TRACE [org.jboss.security] (default task-3) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,299 TRACE [org.jboss.security] (default task-3) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,301 TRACE [org.jboss.security] (default task-4) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,301 TRACE [org.jboss.security] (default task-4) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,301 TRACE [org.jboss.security] (default task-4) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,301 TRACE [org.jboss.security] (default task-4) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,302 TRACE [org.jboss.security] (default task-4) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,307 TRACE [org.jboss.security] (default task-6) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,307 TRACE [org.jboss.security] (default task-6) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,307 TRACE [org.jboss.security] (default task-6) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,307 TRACE [org.jboss.security] (default task-6) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,308 TRACE [org.jboss.security] (default task-6) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,309 TRACE [org.jboss.security] (default task-7) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,309 TRACE [org.jboss.security] (default task-7) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,309 TRACE [org.jboss.security] (default task-7) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,309 TRACE [org.jboss.security] (default task-7) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,310 TRACE [org.jboss.security] (default task-7) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,324 TRACE [org.jboss.security] (default task-8) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-9) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-8) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-9) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-8) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-9) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-10) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-8) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-9) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-10) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-10) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-5) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-10) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-5) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@2d2e255, credential class: class [C
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-5) PBOX000205: End validateCache, result = true
              2014-02-18 12:19:13,325 TRACE [org.jboss.security] (default task-5) PBOX000201: End isValid, result = true
              2014-02-18 12:19:13,326 TRACE [org.jboss.security] (default task-9) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,326 TRACE [org.jboss.security] (default task-8) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,326 TRACE [org.jboss.security] (default task-10) PBOX000354: Setting security roles ThreadLocal: null
              2014-02-18 12:19:13,326 TRACE [org.jboss.security] (default task-5) PBOX000354: Setting security roles ThreadLocal: null
              
              • 4. Re: Problems with authentication with WildFly
                Troy Bronzan Newbie

                Ok I got the roles working I think, but there's now another problem.  It looks like the initial authentication works, but then there is an authentication failure afterwords when some of the EJBs get used.  It's almost as though it's forgetting the authentication as per line 90 in the trace.  Here's the trace:

                 

                LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
                ControlFlag: LoginModuleControlFlag: required
                Options:
                name=hashCharset, value=UTF-8
                name=hashAlgorithm, value=MD5
                name=principalsQuery, value=SELECT Password FROM foo.dbo.users WHERE id = ?
                name=hashEncoding, value=base64
                name=dsJndiName, value=java:jboss/jdbc/foo
                name=rolesQuery, value=exec dbo.getuseridpermissions ?
                
                
                2014-02-18 13:21:59,836 TRACE [org.jboss.security] (default task-2) PBOX000236: Begin initialize method
                2014-02-18 13:21:59,837 DEBUG [org.jboss.security] (default task-2) PBOX000281: Password hashing activated, algorithm: MD5, encoding: base64, charset: UTF-8, callback: null, storeCallBack: null
                2014-02-18 13:21:59,837 TRACE [org.jboss.security] (default task-2) PBOX000262: Module options [dsJndiName: java:jboss/jdbc/foo, principalsQuery: SELECT Password FROM foo.dbo.users WHERE id = ?, rolesQuery: exec dbo.getuseridpermissions ?, suspendResume: true]
                2014-02-18 13:21:59,837 TRACE [org.jboss.security] (default task-2) PBOX000240: Begin login method
                2014-02-18 13:21:59,845 TRACE [org.jboss.security] (default task-2) PBOX000263: Executing query SELECT Password FROM foo.dbo.users WHERE id = ? with username superuser
                2014-02-18 13:21:59,846 TRACE [org.jboss.security] (default task-2) PBOX000241: End login method, isValid: true
                2014-02-18 13:21:59,846 TRACE [org.jboss.security] (default task-2) PBOX000242: Begin commit method, overall result: true
                2014-02-18 13:21:59,846 TRACE [org.jboss.security] (default task-2) PBOX000263: Executing query exec dbo.getuseridpermissions ? with username superuser
                2014-02-18 13:21:59,847 TRACE [org.jboss.security] (default task-2) PBOX000263: Executing query exec dbo.getuseridpermissions ? with username superuser
                2014-02-18 13:21:59,853 TRACE [org.jboss.security] (default task-2) PBOX000210: defaultLogin, login context: javax.security.auth.login.LoginContext@50318ca5, subject: Subject(1188101949).principals=org.jboss.security.SimplePrincipal@1126507037(superuser)org.jboss.security.SimpleGroup@987938907(Roles(members:create_resources_extensions,modify_access_control_usergroups,view_resources_queues,view_resources_agent_groups,view_access_control,view_realtime_queuegroups,modify_resources_agent_groups,modify_resources_routingpoints,log_in_administrator,view_reports_routingpoints,delete_resources_trunk_groups,delete_resources_queue_groups,view_reports_agents,modify_resources_queues,view_realtime_extensiongroups,modify_system_status_thresholds,delete_resources_trunks,modify_resources_agents,create_resources_queue_groups,create_resources_trunks,view_realtime,view_reason_codes,delete_resources_agent_groups,delete_access_control_usergroups,create_resources_trunk_groups,modify_number_identification,view_resources_queue_groups,view_resources_routingpoint_groups,view_reports,modify_report_options,delete_resources_agents,modify_resources_trunk_groups,view_system_status,view_resources_trunks,delete_resources_queues,create_access_control_users,view_resources_agents,view_resources_extensions,modify_access_control_users,delete_resources_routingpoint_groups,view_access_control_usergroups,delete_resources_extensions,view_site_configuration,create_resources_routingpoint_groups,view_resources_trunk_groups,create_resources_extension_groups,modify_resources_trunks,create_resources_agents,perform_resource_synchronization,create_resources_routingpoints,cancel_user_requests,delete_resources_extension_groups,create_access_control_usergroups,view_reports_queues,view_visualizer,modify_resources_routingpoint_groups,view_activity_monitor,modify_reason_codes,view_resources_routingpoints,modify_site_settings,view_reports_extensions,modify_resources_extensions,view_reports_trunks,view_resources_extension_groups,modify_resources_queue_groups,log_in_web_portal,modify_aes_configuration,create_resources_agent_groups,view_realtime_trunkgroups,change_preferences,delete_access_control_users,modify_email_configuration,view_resources_groups,modify_resources_extension_groups,delete_resources_routingpoints,view_access_control_users,create_resources_queues,view_report_options,view_realtime_queues,view_license_information,view_number_identification,view_resources))org.jboss.security.SimpleGroup@987938907(CallerPrincipal(members:superuser))
                2014-02-18 13:21:59,854 TRACE [org.jboss.security] (default task-2) PBOX000207: updateCache, input subject: Subject(1188101949).principals=org.jboss.security.SimplePrincipal@1126507037(superuser)org.jboss.security.SimpleGroup@987938907(Roles(members:create_resources_extensions,modify_access_control_usergroups,view_resources_queues,view_resources_agent_groups,view_access_control,view_realtime_queuegroups,modify_resources_agent_groups,modify_resources_routingpoints,log_in_administrator,view_reports_routingpoints,delete_resources_trunk_groups,delete_resources_queue_groups,view_reports_agents,modify_resources_queues,view_realtime_extensiongroups,modify_system_status_thresholds,delete_resources_trunks,modify_resources_agents,create_resources_queue_groups,create_resources_trunks,view_realtime,view_reason_codes,delete_resources_agent_groups,delete_access_control_usergroups,create_resources_trunk_groups,modify_number_identification,view_resources_queue_groups,view_resources_routingpoint_groups,view_reports,modify_report_options,delete_resources_agents,modify_resources_trunk_groups,view_system_status,view_resources_trunks,delete_resources_queues,create_access_control_users,view_resources_agents,view_resources_extensions,modify_access_control_users,delete_resources_routingpoint_groups,view_access_control_usergroups,delete_resources_extensions,view_site_configuration,create_resources_routingpoint_groups,view_resources_trunk_groups,create_resources_extension_groups,modify_resources_trunks,create_resources_agents,perform_resource_synchronization,create_resources_routingpoints,cancel_user_requests,delete_resources_extension_groups,create_access_control_usergroups,view_reports_queues,view_visualizer,modify_resources_routingpoint_groups,view_activity_monitor,modify_reason_codes,view_resources_routingpoints,modify_site_settings,view_reports_extensions,modify_resources_extensions,view_reports_trunks,view_resources_extension_groups,modify_resources_queue_groups,log_in_web_portal,modify_aes_configuration,create_resources_agent_groups,view_realtime_trunkgroups,change_preferences,delete_access_control_users,modify_email_configuration,view_resources_groups,modify_resources_extension_groups,delete_resources_routingpoints,view_access_control_users,create_resources_queues,view_report_options,view_realtime_queues,view_license_information,view_number_identification,view_resources))org.jboss.security.SimpleGroup@987938907(CallerPrincipal(members:superuser)), cached subject: Subject(2016474153).principals=org.jboss.security.SimplePrincipal@1126507037(superuser)org.jboss.security.SimpleGroup@987938907(Roles(members:create_resources_extensions,modify_access_control_usergroups,view_resources_queues,view_resources_agent_groups,view_access_control,view_realtime_queuegroups,modify_resources_agent_groups,modify_resources_routingpoints,log_in_administrator,view_reports_routingpoints,delete_resources_trunk_groups,delete_resources_queue_groups,view_reports_agents,modify_resources_queues,view_realtime_extensiongroups,modify_system_status_thresholds,delete_resources_trunks,modify_resources_agents,create_resources_queue_groups,create_resources_trunks,view_realtime,view_reason_codes,delete_resources_agent_groups,delete_access_control_usergroups,create_resources_trunk_groups,modify_number_identification,view_resources_queue_groups,view_resources_routingpoint_groups,view_reports,modify_report_options,delete_resources_agents,modify_resources_trunk_groups,view_system_status,view_resources_trunks,delete_resources_queues,create_access_control_users,view_resources_agents,view_resources_extensions,modify_access_control_users,delete_resources_routingpoint_groups,view_access_control_usergroups,delete_resources_extensions,view_site_configuration,create_resources_routingpoint_groups,view_resources_trunk_groups,create_resources_extension_groups,modify_resources_trunks,create_resources_agents,perform_resource_synchronization,create_resources_routingpoints,cancel_user_requests,delete_resources_extension_groups,create_access_control_usergroups,view_reports_queues,view_visualizer,modify_resources_routingpoint_groups,view_activity_monitor,modify_reason_codes,view_resources_routingpoints,modify_site_settings,view_reports_extensions,modify_resources_extensions,view_reports_trunks,view_resources_extension_groups,modify_resources_queue_groups,log_in_web_portal,modify_aes_configuration,create_resources_agent_groups,view_realtime_trunkgroups,change_preferences,delete_access_control_users,modify_email_configuration,view_resources_groups,modify_resources_extension_groups,delete_resources_routingpoints,view_access_control_users,create_resources_queues,view_report_options,view_realtime_queues,view_license_information,view_number_identification,view_resources))org.jboss.security.SimpleGroup@987938907(CallerPrincipal(members:superuser))
                2014-02-18 13:21:59,854 TRACE [org.jboss.security] (default task-2) PBOX000208: Inserted cache info: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,855 TRACE [org.jboss.security] (default task-2) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,861 TRACE [org.jboss.security] (default task-2) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,863 TRACE [org.jboss.security] (default task-3) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,863 TRACE [org.jboss.security] (default task-3) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,863 TRACE [org.jboss.security] (default task-3) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,863 TRACE [org.jboss.security] (default task-3) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,932 TRACE [org.jboss.security] (default task-3) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-4) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-5) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-4) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-5) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-4) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-5) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-4) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-5) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,935 TRACE [org.jboss.security] (default task-7) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,936 TRACE [org.jboss.security] (default task-7) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,936 TRACE [org.jboss.security] (default task-7) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,936 TRACE [org.jboss.security] (default task-7) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,939 TRACE [org.jboss.security] (default task-4) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,939 TRACE [org.jboss.security] (default task-7) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,939 TRACE [org.jboss.security] (default task-5) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-8) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-8) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-9) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-8) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-9) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-8) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-9) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,961 TRACE [org.jboss.security] (default task-9) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,962 TRACE [org.jboss.security] (default task-8) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-9) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-6) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-10) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-6) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-10) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-6) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-10) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-6) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,964 TRACE [org.jboss.security] (default task-10) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,965 TRACE [org.jboss.security] (default task-6) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,967 TRACE [org.jboss.security] (default task-11) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:21:59,967 TRACE [org.jboss.security] (default task-11) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:21:59,967 TRACE [org.jboss.security] (default task-11) PBOX000205: End validateCache, result = true
                2014-02-18 13:21:59,967 TRACE [org.jboss.security] (default task-11) PBOX000201: End isValid, result = true
                2014-02-18 13:21:59,969 TRACE [org.jboss.security] (default task-11) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:21:59,993 TRACE [org.jboss.security] (default task-10) PBOX000200: Begin isValid, principal: superuser, cache entry: null
                2014-02-18 13:21:59,993 TRACE [org.jboss.security] (default task-10) PBOX000209: defaultLogin, principal: superuser
                2014-02-18 13:21:59,993 TRACE [org.jboss.security] (default task-10) PBOX000221: Begin getAppConfigurationEntry(other), size: 4
                2014-02-18 13:21:59,993 TRACE [org.jboss.security] (default task-10) PBOX000224: End getAppConfigurationEntry(other), AuthInfo: AppConfigurationEntry[]:
                [0]
                LoginModule Class: org.jboss.as.security.remoting.RemotingLoginModule
                ControlFlag: LoginModuleControlFlag: optional
                Options:
                name=password-stacking, value=useFirstPass
                [1]
                LoginModule Class: org.jboss.as.security.RealmDirectLoginModule
                ControlFlag: LoginModuleControlFlag: required
                Options:
                name=password-stacking, value=useFirstPass
                
                
                2014-02-18 13:21:59,994 TRACE [org.jboss.security] (default task-10) PBOX000236: Begin initialize method
                2014-02-18 13:21:59,994 TRACE [org.jboss.security] (default task-10) PBOX000240: Begin login method
                2014-02-18 13:21:59,994 TRACE [org.jboss.security] (default task-10) PBOX000236: Begin initialize method
                2014-02-18 13:21:59,995 TRACE [org.jboss.security] (default task-10) PBOX000240: Begin login method
                2014-02-18 13:22:00,002 DEBUG [org.jboss.security] (default task-10) PBOX000283: Bad password for username superuser
                2014-02-18 13:22:00,002 TRACE [org.jboss.security] (default task-10) PBOX000244: Begin abort method
                2014-02-18 13:22:00,002 TRACE [org.jboss.security] (default task-10) PBOX000244: Begin abort method
                2014-02-18 13:22:00,002 DEBUG [org.jboss.security] (default task-10) PBOX000206: Login failure: javax.security.auth.login.FailedLoginException: PBOX000070: Password invalid/Password required
                  at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:284) [picketbox-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.as.security.RealmDirectLoginModule.login(RealmDirectLoginModule.java:148) [wildfly-security-8.0.0.Final.jar:8.0.0.Final]
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
                  at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696) [rt.jar:1.7.0_45]
                  at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.login(LoginContext.java:594) [rt.jar:1.7.0_45]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:408) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:345) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:333) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:146) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:402) [wildfly-security-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:364) [wildfly-security-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:52) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.IPreferenceRetrieverLocal$$$view31.getPreferences(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.initializePreferences(UserPreferenceBean.java:87)
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:57)
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59)
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45)
                  at com.foo.application.Application.createSessionBean(Application.java:69)
                  at com.foo.application.Application.init(Application.java:57)
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30)
                  at com.vaadin.ui.UI.doInit(UI.java:614)
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223)
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73)
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37)
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382)
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                
                
                2014-02-18 13:22:00,007 TRACE [org.jboss.security] (default task-10) PBOX000201: End isValid, result = false
                2014-02-18 13:22:00,008 TRACE [org.jboss.security.audit] (default task-10) [Success]Source=org.jboss.as.security.service.SimpleSecurityManager;Action=authentication;principal=superuser;
                2014-02-18 13:22:00,008 TRACE [org.jboss.security] (default task-10) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:22:00,009 ERROR [org.jboss.as.ejb3.invocation] (default task-10) JBAS014134: EJB Invocation failed on component PreferenceEJB for method public abstract java.util.Map com.foo.preference.IPreferenceRetriever.getPreferences(com.foo.resource.IUser) throws com.foo.exception.ResourceNotFoundException: javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:66) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.IPreferenceRetrieverLocal$$$view31.getPreferences(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.initializePreferences(UserPreferenceBean.java:87)
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:57)
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59)
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45)
                  at com.foo.application.Application.createSessionBean(Application.java:69)
                  at com.foo.application.Application.init(Application.java:57)
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30)
                  at com.vaadin.ui.UI.doInit(UI.java:614)
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223)
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73)
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37)
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382)
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                
                
                2014-02-18 13:22:00,020 ERROR [com.foo.beans.preferences.UserPreferenceBean] (default task-10) Failed to initialize user preferences.: javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:66) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.IPreferenceRetrieverLocal$$$view31.getPreferences(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.initializePreferences(UserPreferenceBean.java:87) [foo-web.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:57) [foo-web.jar:]
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59) [foo-web.jar:]
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45) [foo-web.jar:]
                  at com.foo.application.Application.createSessionBean(Application.java:69) [foo-web.jar:]
                  at com.foo.application.Application.init(Application.java:57) [foo-web.jar:]
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30) [classes:]
                  at com.vaadin.ui.UI.doInit(UI.java:614) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238) [vaadin-server-7.1.9.jar:7.1.9]
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                
                
                2014-02-18 13:22:00,026 TRACE [org.jboss.security] (default task-10) PBOX000200: Begin isValid, principal: superuser, cache entry: null
                2014-02-18 13:22:00,026 TRACE [org.jboss.security] (default task-10) PBOX000209: defaultLogin, principal: superuser
                2014-02-18 13:22:00,026 TRACE [org.jboss.security] (default task-10) PBOX000221: Begin getAppConfigurationEntry(other), size: 4
                2014-02-18 13:22:00,026 TRACE [org.jboss.security] (default task-10) PBOX000224: End getAppConfigurationEntry(other), AuthInfo: AppConfigurationEntry[]:
                [0]
                LoginModule Class: org.jboss.as.security.remoting.RemotingLoginModule
                ControlFlag: LoginModuleControlFlag: optional
                Options:
                name=password-stacking, value=useFirstPass
                [1]
                LoginModule Class: org.jboss.as.security.RealmDirectLoginModule
                ControlFlag: LoginModuleControlFlag: required
                Options:
                name=password-stacking, value=useFirstPass
                
                
                2014-02-18 13:22:00,026 TRACE [org.jboss.security] (default task-10) PBOX000236: Begin initialize method
                2014-02-18 13:22:00,026 TRACE [org.jboss.security] (default task-10) PBOX000240: Begin login method
                2014-02-18 13:22:00,027 TRACE [org.jboss.security] (default task-10) PBOX000236: Begin initialize method
                2014-02-18 13:22:00,027 TRACE [org.jboss.security] (default task-10) PBOX000240: Begin login method
                2014-02-18 13:22:00,027 DEBUG [org.jboss.security] (default task-10) PBOX000283: Bad password for username superuser
                2014-02-18 13:22:00,027 TRACE [org.jboss.security] (default task-10) PBOX000244: Begin abort method
                2014-02-18 13:22:00,027 TRACE [org.jboss.security] (default task-10) PBOX000244: Begin abort method
                2014-02-18 13:22:00,027 DEBUG [org.jboss.security] (default task-10) PBOX000206: Login failure: javax.security.auth.login.FailedLoginException: PBOX000070: Password invalid/Password required
                  at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:284) [picketbox-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.as.security.RealmDirectLoginModule.login(RealmDirectLoginModule.java:148) [wildfly-security-8.0.0.Final.jar:8.0.0.Final]
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
                  at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696) [rt.jar:1.7.0_45]
                  at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695) [rt.jar:1.7.0_45]
                  at javax.security.auth.login.LoginContext.login(LoginContext.java:594) [rt.jar:1.7.0_45]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:408) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:345) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:333) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:146) [picketbox-infinispan-4.0.20.Final.jar:4.0.20.Final]
                  at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:402) [wildfly-security-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:364) [wildfly-security-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:52) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.ISessionInfoLocal$$$view40.getSessionUser(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean$JMSPreferencesChangeListener.<init>(UserPreferenceBean.java:444)
                  at com.foo.beans.preferences.UserPreferenceBean.createJMSPreferencesChangeListener(UserPreferenceBean.java:401)
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:59)
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59)
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45)
                  at com.foo.application.Application.createSessionBean(Application.java:69)
                  at com.foo.application.Application.init(Application.java:57)
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30)
                  at com.vaadin.ui.UI.doInit(UI.java:614)
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223)
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73)
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37)
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382)
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                
                
                2014-02-18 13:22:00,032 TRACE [org.jboss.security] (default task-10) PBOX000201: End isValid, result = false
                2014-02-18 13:22:00,032 TRACE [org.jboss.security.audit] (default task-10) [Success]Source=org.jboss.as.security.service.SimpleSecurityManager;Action=authentication;principal=superuser;
                2014-02-18 13:22:00,032 TRACE [org.jboss.security] (default task-10) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:22:00,032 ERROR [org.jboss.as.ejb3.invocation] (default task-10) JBAS014134: EJB Invocation failed on component SessionInfoEJB for method public abstract com.foo.resource.IUser com.foo.session.ISessionInfo.getSessionUser(): javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:66) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.ISessionInfoLocal$$$view40.getSessionUser(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean$JMSPreferencesChangeListener.<init>(UserPreferenceBean.java:444)
                  at com.foo.beans.preferences.UserPreferenceBean.createJMSPreferencesChangeListener(UserPreferenceBean.java:401)
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:59)
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59)
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45)
                  at com.foo.application.Application.createSessionBean(Application.java:69)
                  at com.foo.application.Application.init(Application.java:57)
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30)
                  at com.vaadin.ui.UI.doInit(UI.java:614)
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223)
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73)
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37)
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382)
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                
                
                2014-02-18 13:22:00,040 SEVERE [com.vaadin.server.DefaultErrorHandler] (default task-10) : javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:66) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.ISessionInfoLocal$$$view40.getSessionUser(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean$JMSPreferencesChangeListener.<init>(UserPreferenceBean.java:444) [foo-web.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.createJMSPreferencesChangeListener(UserPreferenceBean.java:401) [foo-web.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:59) [foo-web.jar:]
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59) [foo-web.jar:]
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45) [foo-web.jar:]
                  at com.foo.application.Application.createSessionBean(Application.java:69) [foo-web.jar:]
                  at com.foo.application.Application.init(Application.java:57) [foo-web.jar:]
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30) [classes:]
                  at com.vaadin.ui.UI.doInit(UI.java:614) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238) [vaadin-server-7.1.9.jar:7.1.9]
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                
                
                2014-02-18 13:22:00,044 ERROR [io.undertow.request] (default task-10) UT005023: Exception handling request to /foo/web/auth/: javax.servlet.ServletException: com.vaadin.server.ServiceException: javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:240) [vaadin-server-7.1.9.jar:7.1.9]
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
                Caused by: com.vaadin.server.ServiceException: javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at com.vaadin.server.VaadinService.handleExceptionDuringRequest(VaadinService.java:1440) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1394) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238) [vaadin-server-7.1.9.jar:7.1.9]
                  ... 28 more
                Caused by: javax.ejb.EJBAccessException: JBAS013323: Invalid User
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:66) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:46) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:92) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Final.jar:8.0.0.Final]
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
                  at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
                  at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
                  at com.foo.ejb.session.ISessionInfoLocal$$$view40.getSessionUser(Unknown Source) [ejb-portal-api.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean$JMSPreferencesChangeListener.<init>(UserPreferenceBean.java:444) [foo-web.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.createJMSPreferencesChangeListener(UserPreferenceBean.java:401) [foo-web.jar:]
                  at com.foo.beans.preferences.UserPreferenceBean.<init>(UserPreferenceBean.java:59) [foo-web.jar:]
                  at com.foo.bean.session.SessionBean.createUserPreferenceBean(SessionBean.java:59) [foo-web.jar:]
                  at com.foo.bean.session.SessionBean.<init>(SessionBean.java:45) [foo-web.jar:]
                  at com.foo.application.Application.createSessionBean(Application.java:69) [foo-web.jar:]
                  at com.foo.application.Application.init(Application.java:57) [foo-web.jar:]
                  at com.foo.application.PortalApplication.init(PortalApplication.java:30) [classes:]
                  at com.vaadin.ui.UI.doInit(UI.java:614) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37) [vaadin-server-7.1.9.jar:7.1.9]
                  at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382) [vaadin-server-7.1.9.jar:7.1.9]
                  ... 29 more
                
                
                2014-02-18 13:22:00,051 TRACE [org.jboss.security] (default task-10) PBOX000354: Setting security roles ThreadLocal: null
                2014-02-18 13:22:00,161 TRACE [org.jboss.security] (default task-12) PBOX000200: Begin isValid, principal: superuser, cache entry: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64
                2014-02-18 13:22:00,161 TRACE [org.jboss.security] (default task-12) PBOX000204: Begin validateCache, domainInfo: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@55eded64, credential class: class [C
                2014-02-18 13:22:00,161 TRACE [org.jboss.security] (default task-12) PBOX000205: End validateCache, result = true
                2014-02-18 13:22:00,161 TRACE [org.jboss.security] (default task-12) PBOX000201: End isValid, result = true
                2014-02-18 13:22:00,162 TRACE [org.jboss.security] (default task-12) PBOX000354: Setting security roles ThreadLocal: null
                
                • 5. Re: Problems with authentication with WildFly
                  Troy Bronzan Newbie

                  Fixed it by changing the rolesQuery so it returned a column called 'Roles' with the values being Roles in all records.