Due to missing parameters in the public class, adding a user to Tomcat's <classname>UserDatabase</classname> using the JBoss Operations Network (JON) interface in JBoss Enterprise Web Server displays an error in agent's log indicating that the MBean parameters are invalid.
A fix is applied to add the missing parameters. As a result, adding users to Tomcat's <classname>UserDatabase</classname> using JBoss Operations Network (JON) works as expected in JBoss Operations Network (JON).
Tomcat7 version: EWS 2.0.0.CR1
When I try to add a User through JON's interface, I get this error in agent's log:
2012-10-11 09:35:03,828 DEBUG [ResourceFactory.executor-1] (rhq.core.pc.inventory.CreateResourceRunner)- Throwable was found in creation report for request [10082].
java.lang.IllegalStateException: Name [roles] specified for parameter of operation [createUser] on MBean [Users:type=UserDatabase,database=UserDatabase] is invalid. The MBean operation does not take a parameter by that name.
at org.rhq.plugins.jmx.MBeanResourceComponent.invokeOperation(MBeanResourceComponent.java:576)
at org.rhq.plugins.jmx.MBeanResourceComponent.invokeOperation(MBeanResourceComponent.java:524)
at org.jboss.on.plugins.tomcat.TomcatUserDatabaseComponent.createResource(TomcatUserDatabaseComponent.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:634)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Created attachment 654435[details]
Avoid operation error
Avoid the error due to the missing parameters on the operation. Any roles or groups must be added later.
Jean-Frederic, ideally all the release notes should have this much detail where possible. Unfortunately this is not possible sometimes without SME additions. For consistency, I have reduced the detail to match other similar bugs.