2 Replies Latest reply on Oct 26, 2011 10:00 AM by anil.saldhana

    LoginException: Missing users.properties file

    alvar_hanso

      Where do I need to place my users.propeties file? Because JBoss says:

      "LoginException: Missing users.properties file"

       

      I configured it like this and expected they must be in the same directory as standalone.xml is:

       

      <module-option name="usersProperties" value="abx-tax-users.properties"/>

       

      If I use a path like "D:/somewhere/abx-tax-users.properties" it works. But I want to use a relative path like in all the examples I have seen about this.

       

      Any idea?

        • 1. Re: LoginException: Missing users.properties file
          mmoyses

          You can use relative paths. For example "../standalone/configuration/atx-tax-users.properties" if you are starting AS7 from the $JBOSS_HOME/bin directory.

          Alternatively you can include the properties file in the WEB-INF/classes folder of your web application. It would then be included in the classpath so you can set the option to "atx-tax-users.properties".

          • 2. Re: LoginException: Missing users.properties file
            anil.saldhana

            Ideally, you should use the properties files for simple setup such as testing etc.  Do not use it in production.  Use DB/LDAP login modules.

             

            Ideally, you should place the properties files in the classpath of the deploying application.  For web, simplest would be WEB-INF/classes.