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 :
<interceptor code="org.jboss.jmx.connector.invoker.AuthorizationInterceptor" authorizingClass="org.jboss.jmx.connector.invoker.ExternalizableRolesAuthorization"/>
roles=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.