wood burning stoves*
The moose likes JSF and the fly likes JAAS Implementation with JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JAAS Implementation with JBOSS" Watch "JAAS Implementation with JBOSS" New topic
Author

JAAS Implementation with JBOSS

mh wish
Greenhorn

Joined: Feb 24, 2010
Posts: 1
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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAAS Implementation with JBOSS