title: Wildfly custom login module failed to load properties file
body: <p>I am new to Java EE and Wildfly, now i am learning how to implement a custom login module for my application. I follow from this tutorial <a href="http://www.radcortez.com/custom-principal-and-loginmodule-for-wildfly/" rel="nofollow">http://www.radcortez.com/custom-principal-and-loginmodule-for-wildfly/</a>. But when i deploy my app to wildfly server ( 8.2.0.Final) and try to login it always print out exception on the console</p>
  
  <pre><code>[org.jboss.security] (default task-1) PBOX000287: Failed to open properties file from URL: java.net.MalformedURLException: no protocol: /Volumes/Data/Windows/Documents/Ebook/Java/JavaEE/wildfly-8.2.0.Final/standalone/configuration/users.properties
  </code></pre>
  
  <p>I do have the users.properties file in the above directory. I found some discussion talking about this but no one gives a final solution. Please help me, thank you very much. Here is my other configurations</p>
  
  <pre><code>&lt;security-domain name="token-login-module" cache-type="default"&gt;
      &lt;authentication&gt;
          &lt;login-module code="com.ege.TokenLoginModule" flag="required"&gt;
              &lt;module-option name="usersProperties" value="${jboss.server.config.dir}/users.properties"/&gt;
              &lt;module-option name="rolesProperties" value="${jboss.server.config.dir}/roles.properties"/&gt;
          &lt;/login-module&gt;
      &lt;/authentication&gt;
  &lt;/security-domain&gt;
  </code></pre>