Bug 1372096

Summary: [GSS](6.4.z) MBeans with ObjectName attributes throw ClassNotFoundException
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: dereed
Component: JMXAssignee: Peter Palaga <ppalaga>
Status: CLOSED CURRENTRELEASE QA Contact: Peter Mackay <pmackay>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.9CC: bmaxwell, bparry, hrupp, jtruhlar, pmackay, ppalaga, sdouglas
Target Milestone: CR1   
Target Release: EAP 6.4.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: eap6412-proposed
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 13:12:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1375585    

Description dereed 2016-08-31 21:49:21 UTC
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.

Comment 1 dereed 2016-08-31 21:50:14 UTC
Proposed fix: add the following dependency to the "org.jboss.common-beans" module.xml:

    <dependencies>
        <module name="javax.api"/>
    </dependencies>

Comment 5 Peter Mackay 2016-11-16 11:45:39 UTC
Verified with EAP 6.4.12.CP.CR1

Comment 6 Petr Penicka 2017-01-17 13:12:23 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.