Installation Validation Test Failure
grfalk Jun 23, 2006 8:07 PMI performed a new installation of JBoss AS 4.0.4 (via Web install of the "default" profile). I then performed the installation of JBoss-Messaging-1.0.1.CR2, executing the instructions in "Chapter 4. Installation" of the on-line version of the "Getting Started with JBoss Messaging 1.0.1" document: (http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/guide-1.0.1.CR2/html/index.html)
Specifically, I executed the steps outlined in the "4.1.2. Manual installation procedure" section. I was able to successfully start the server. I then proceeded to execute the "queues" example, and received the following error:
15:48:07,981 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
The following files exist in the directory $JBOSS_HOME/server/messaging/deploy/jboss-messaging.sar:
messaging-roles.properties
messaging-users.properties
Both files have a single entry (other than comments) of "guest=guest".
Per section "4.1.2.4. Configure the security domain" of the "Getting Started..." document, my modification to the file $JBOSS_HOME/server/messaging/conf/login-config.xml is as follows:
<!-- The default login configuration used by any security domain that does not have a application-policy entry with a matching name --> <application-policy name = "other"> <!-- A simple server login module, which can be used when the number of users is relatively small. It uses two properties files: users.properties, which holds users (key) and their password (value). roles.properties, which holds users (key) and a comma-separated list of their roles (value). The unauthenticatedIdentity property defines the name of the principal that will be used when a null username and password are presented as is the case for an unuathenticated web client or MDB. If you want to allow such users to be authenticated add the property, e.g., unauthenticatedIdentity="nobody" --> <authentication> <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required"> <module-option name="unauthenticatedIdentity">guest</module-option> </login-module> </authentication> </application-policy>
In the server error message, I noticed that the server was apparently expecting to find a property file named "user.properties". So, in the $JBOSS_HOME/server/messaging/deploy/jboss-messaging.sar directory, I copied "messaging-roles.properties" to "roles.properties" and copied "messaging-users.properties" to "users.properties". I then re-ran the "queues" example test, and it executed successfully.
So, my question is...
Is this issue due to:
1) A misconfiguration on my behalf during the installation?
2) An issue with the "Getting Started..." documentation I referenced?
3) A misconfiguration in the "JBoss-Messaging-1.0.1.CR2" installation package.
Since I could not find another report of this issue on the forums, my guess is that (1) is the likely answer.
Thank you in advance any help you may be able to provide me.