This content has been marked as final.
Show 6 replies
-
1. Re: Exception during message publsih
clebert.suconic Jul 21, 2009 4:03 PM (in response to desuraghu)The Security Meta Store is forbiding the authorization for some reason.
Double check your configs. Or you could also provide more details about your config then we could help.
You could also try adding debug/Trace at org.jboss.jms.server.security and the Security store you are using, and take a look on the logs. -
2. Re: Exception during message publsih
desuraghu Jul 22, 2009 2:00 AM (in response to desuraghu)In the destnation service.xml file I have added the following config for the topic.
<attribute name="SecurityConfig"> <security> <role name="ApplicationUserRole" read="true" write="true" create="true"/> </security> </attribute>
In the message-service.xml file also i have specified the security conf in the follwing way:<attribute name="DefaultSecurityConfig"> <security> <role name="ApplicationUserRole" read="true" write="true" create="true"/> </security> </attribute> In login-config.xml file: <application-policy name = "messaging"> <authentication> <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required" > <module-option name = "unauthenticatedIdentity">guest</module-option> <module-option name = "usersProperties">props/messaging-users.properties</module-option> <module-option name = "rolesProperties">props/messaging-roles.properties</module-option> </login-module> </authentication> </application-policy>
Added the mapping in user.properties and role.properties file. -
3. Re: Exception during message publsih
desuraghu Jul 22, 2009 2:14 AM (in response to desuraghu)"desuraghu" wrote:
In the destnation service.xml file I have added the following config for the topic.
<!--
<attribute name="SecurityConfig">
<security>
<role name="ApplicationUserRole" read="true" write="true" create="true"/>
</security>
</attribute>
-->
In the message-service.xml file also i have specified the security conf in the follwing way:
<attribute name="DefaultSecurityConfig">
<security>
<role name="ApplicationUserRole" read="true" write="true" create="true"/>
</security>
</attribute>
In login-config.xml file:
<application-policy name = "messaging">
<authentication>
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required" >
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "usersProperties">props/messaging-users.properties</module-option>
<module-option name = "rolesProperties">props/messaging-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
Added the mapping in user.properties and role.properties file. -
4. Re: Exception during message publsih
desuraghu Jul 22, 2009 2:14 AM (in response to desuraghu)"desuraghu" wrote:
"desuraghu" wrote:
In the destnation service.xml file I have added the following config for the topic.
<security>
<role name="ApplicationUserRole" read="true" write="true" create="true"/>
</security>
In the message-service.xml file also i have specified the security conf in the follwing way:
<security>
<role name="ApplicationUserRole" read="true" write="true" create="true"/>
</security>
In login-config.xml file:
<application-policy name = "messaging">
<authentication>
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required" >
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "usersProperties">props/messaging-users.properties</module-option>
<module-option name = "rolesProperties">props/messaging-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
Added the mapping in user.properties and role.properties file. -
5. Re: Exception during message publsih
gaohoward Jul 22, 2009 3:24 AM (in response to desuraghu)what's your jboss AS version and JBM version?
-
6. Re: Exception during message publsih
desuraghu Jul 22, 2009 4:51 AM (in response to desuraghu)JBoss version - 4.2.2
JBM - 1.4.2