3 Replies Latest reply on Oct 2, 2015 6:05 AM by Martin Choma

    JAAS login fails for web application at midnight in wildfly every day, works only after wildfly is reloaded or restarte

    sitaram c Newbie




      I have enabled JAAS(Form based authentication) for my web application which is in WildFly server. JAAS is working and I am able to login to my web site with username and password. But, the login fails at mid night every night. So, I have set up a crontab to reload wildfly at midnight. As of now it is OK as we are in testing phase and four to five users use it. If many users use the application and then reload occurs , will reload disturbs the transaction or working of the application.

      WHY MY JAAS FAILS AT MIGNIGHT ? I have searched all over but could not find even any one specifying such a problem. Please help me in clearing this problem






      <datasource jta="false" jndi-name="java:jboss/datasources/prometheus1" pool-name="java:jboss/datasources/prometheus1_Pool" enabled="true" use-java-context="true" use-ccm="true">

























      Security Domain

      <security-domain name="prometheus-domain" >


      <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">

      <module-option name="dsJndiName" value="java:jboss/datasources/prometheus1"/>

      <module-option name="principalsQuery" value="select password from users where email=?"/>

      <module-option name="rolesQuery" value="select role_id 'RoleId', role 'Roles' from user_roles where role_id=(select role_id from users where email=?)"/>

      <module-option name="hashAlgorithm" value="SHA-256"/>

      <module-option name="hashEncoding" value="BASE64"/>