]
Dennis Reed commented on WFLY-7027:
-----------------------------------
Proposed fix: add the following dependency to the "org.jboss.common-beans"
module.xml:
<dependencies>
<module name="javax.api"/>
</dependencies>
MBeans with ObjectName attributes throw ClassNotFoundException
--------------------------------------------------------------
Key: WFLY-7027
URL:
https://issues.jboss.org/browse/WFLY-7027
Project: WildFly
Issue Type: Bug
Components: JMX
Affects Versions: 10.0.0.Final
Reporter: Dennis Reed
Assignee: Kabir Khan
An MBean with:
public void setObj(javax.management.ObjectName someObject)
<mbean ...>
<attribute name="Obj" />
causes "java.lang.ClassNotFoundException:
javax.management.MalformedObjectNameException from [Module
\"org.jboss.common-beans:main\"
org.jboss.common.beans.property.ObjectNameEditor in that module is used to convert to
ObjectName objects, and requires MalformedObjectNameException but it is not on the
classpath of that module.