• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAAS Implementation with JBOSS

 
mh wish
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A.o.a
I am recently working with JAAS (JSF) using JBOSS
I am facing an Exception:


02:48:35,515 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role f
iles
java.io.IOException: No properties file: users.properties or defaults: defaultUs
ers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole
sLoginModule.java:186)
while I am not using "UsersRolesLoginModule"
I have define my Dataserver LoginModule in login-config as:

<application-policy name = "LoginProject">
<authentication>
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "dsJndiName">java:/LoginDS</module-option>
<module-option name = "principalsQuery">SELECT password from login where username=?</module-option>
<module-option name = "rolesQuery">SELECT role from login where username=?</module-option>

</login-module>
</authentication>
</application-policy>

and my hello.conf just like:

hello{
org.jboss.security.ClientLoginModule required debug=true;
};

why I am getting exception:

02:48:35,515 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role f
iles
java.io.IOException: No properties file: users.properties or defaults: defaultUs
ers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole
sLoginModule.java:186)

please............solve it
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please............solve it


http://faq.javaranch.com/java/NotACodeMill

I realize that the popular management view of software development is that developers should work for free, but until they start giving us groceries for free, housing, for free, and so forth, there's a limit on what we here at the JavaRanch are willing to do for free. And none of us here gets paid for doing what we do here.

There's a JBoss forum for questions like this. This is the JSF forum and you won't find as many experts in JBoss here as you will there.

I'd move this question over there, but the simple truth of the matter is that there's a very obvious error message in what you've posted, and it appears more than once. That's a pretty good sign that you need to seriously consider what it says and what could be done to make it go away.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic