Roller Blogger Configuration
After some serious struggle attempting to get Roller working under JBoss I had stumbled across this article that outlines the basic procedure required. I followed the steps as identified but still encountered various errors. Below are my findings and what I had to modify to get the installation to function.
1)The security policy that needs to be defined in the login-config.xml file must match the name of the policy specified in the jboss-web.xml file. ‘RollerRealm’ was not what was defined so its not what was being searched for. Ensure tha name used here matches the name of the application policy in the login-config.xml file.
java:/jaas/roller-login
2) After addressing the above problem I restarted everything and was able to successfully create a user. However, I was unable to login and noticed several “Column index out of bounds” errors in the server.log. Turns out the required query was incorrect as the corresponding java class requires not only the rolename but the rolegroup to be returned from the rolesQuery. Edit the jboss/server/default/conf/login-config.xml and add the following security policy definition:
java:/RollerDS select passphrase from rolleruser where username=? select rolename, 'Roles' from userrole where username=? guest