0 Replies Latest reply: Jan 13, 2012 11:02 AM by Eric Savidan RSS

JMX Invoker & ExternalizableRolesAuthorization

Eric Savidan Newbie

Hi,

 

I've got problem to implement ExternalizableRolesAuthorization to secure JMX Invoker.

 

I get this exception when using twiddle script :

 

ERROR [Twiddle] Exec failed

java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String

        at org.jboss.jmx.connector.invoker.AuthorizationInterceptor.invoke(AuthorizationInterceptor.java:110)

        at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:104)

 

I've followed this procedure :

 

  • Add the following to server/${PROFILE}/deploy/jmx-invoker-service.xml just after the AuthenticationInterceptor
    <interceptor code="org.jboss.jmx.connector.invoker.AuthorizationInterceptor"              authorizingClass="org.jboss.jmx.connector.invoker.ExternalizableRolesAuthorization"/>
  • Create the server/${PROFILE}/conf/jmxinvoker-roles.properties file which defines the valid rolesroles=JBossAdmin

 

I found this bug report : https://issues.jboss.org/browse/JBPAPP-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs

 

It corresponds to my problem.

 

Do you know if JBoss AS 5.1.0 GA has been patched ?

 

Regards.