'm having issues when creating application users in JBoss.
I'm migrating an application from GlassFish to JBoss6.4. In GlassFish, I have a keyfile which stores the admin user and password. And I have a custom Realm called pdbRealm. In web.xml, I point the realm-name to pdbReaml, like
<login-config>
<realm-name>pdbRealm</realm-name>
</login-config>
<security-role>
<role-name>administrator</role-name>
</security-role>
<security-role>
<role-name>user</role-name>
</security-role>
My glassfish-web.xml
<glassfish-web-app>
<security-role-mapping>
<role-name>administrator</role-name>
<group-name>pdb_administrators</group-name>
</security-role-mapping>
<security-role-mapping>
<role-name>user</role-name>
<group-name>pdb_users</group-name>
</security-role-mapping>
</glassfish-web-app>
In Jboss, I have a jboss-web.xml
<jboss-web>
<security-domain>app</security-domain>
</jboss-web>
And I have an app.properties file which contains
pdb_administrators=administrator
pdb_users=user
Then, I created an application user with the same username and password as in GlassFish, and assigned it to group pdb_administrators.
In web.xml I changed the realm-name to ApplicationRealm from pdbRealm.
This does not work as expected, the application won't recognize the admin user, I'm really new to JBoss, which step did I do wrong?
(I'm following a guide from http://wildfly.org/news/2014/02/06/GlassFish-to-WildFly-migration/ )