[jboss-jira] [JBoss JIRA] (JBAS-5515) Failed to load users/passwords/role files

J D (JIRA) jira-events at lists.jboss.org
Thu Mar 15 06:52:47 EDT 2012


    [ https://issues.jboss.org/browse/JBAS-5515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676995#comment-12676995 ] 

J D commented on JBAS-5515:
---------------------------

Well, I don't know if this is considered current. But I hit this when deploying an EJB 2.x application in JBoss AS 6.1.final.

Anyhow, the reason I'm commenting here is to share the workaround I found with googlers running in to the same. For me this was solved by adding two empty files to the JBoss setup:
- server/default/conf/props/roles.properties
- server/default/conf/props/users.properties

found the the solution in:
- server/default/conf/login-config.xml

Btw, it might make sense to add those empty files to the JBoss release. Since the default setup seems to be dependent on their existence.

Sidenote: the Jboss AS here is running EJB3.1 EJB's but also has as historical EJB2.x application deployed. The later had some very open security config (allow everyone), which was triggering this.

                
> Failed to load users/passwords/role files
> -----------------------------------------
>
>                 Key: JBAS-5515
>                 URL: https://issues.jboss.org/browse/JBAS-5515
>             Project: Application Server 3  4  5 and 6
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Heiko Braun
>            Assignee: Anil Saldhana
>             Fix For: JBossAS-5.0.0.CR1
>
>
> 21:25:41,277 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
> java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
>         at org.jboss.security.auth.spi.Util.loadProperties(Util.java:366)
>         at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
>         at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
>         at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
> When executing 
> one-test:
>     [junit] Running org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase
>     [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 2.421 sec
>     [junit] Test org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase FAILED

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list