Thank you Ralph and Gary for your prompt response.

Perhaps I was not clear, the HierarchyDynamicMBean exists in the 
log4j-1.214.jar and our app uses it and there are no errors.
As we are trying to migrate to log4j-core-2.17.1, we noticed that 
HierarchyDynamicMBean is not part of log4j-core-2.17.1.jar and it is throwing 

My question are, 
is HierarchyDynamicMBean included in log4j 2? 
Is there an alternative solution/class? 
Can the HierarchyDynamicMBean class be packaged part of log4j2? 
Can the HierarchyDynamicMBean be extracted from log4j-1 and add it log4j-2?
Any suggestions on how to migrate log4j2?

Thank you


-----Original Message-----
From: Ralph Goers <> 
Sent: Monday, March 21, 2022 6:48 PM
To: Log4J Users List <>
Subject: [External] Re: org.apache.logging.log4j.jmx.HierarchyDynamicMBean not 
found in log4j 2

I’m confused. Log4j 1.x used the package org.apache.log4j. Log4j 2.x uses 
org.apache.logging.log4j. So how was that class part of Log4j 1.x?

Indeed -
indicates the package name you show below is wrong.

Although Gary just added the JMX components to log4j-1.2-api I don’t believe 
you should actually use them. 
Log4j 2 comes with its own JMX support and since the design of Log4j 2 is 
different than Log4j 1 I suspect not everything in 1.x will work as expected.


> On Mar 21, 2022, at 4:34 PM, Gary Gregory <> wrote:
> Shaib,
> That whole package was never ported into the log4j-1.2-api module.
> I just added the missing package for API binary compatibility.
> Do note the package Javadoc: "This package lets you manage log4j 
> settings using JMX. It is unfortunately not of production quality."
> There is no testing for behavioral compatibility, this is currently 
> only to avoid class not found errors. It is unlikely to work as expected.
> You can find this code in the 'release-2.x' branch and snapshot builds 
> on 
> OY2ky_t5a3FqIGLmgeGdQ6ttTnECbjZ3Nk-699lYMF40iEi4rEGeMMAAvj8smCJ64OUOyh
> AJ2hAr93ffe461mOOwkF5JtMmkPLqBsQIZ6_o1yMzw_a3BN4Hokco1HsJcqDxKv7LavsEB
> 7pTMF-khL2mlTZENnuVFjldZguehKFiAs4NlE3KxHXnrWTPxqxYynOgVf35UxinOwLVgVw
> JC8UXInw42EpIe0rnrC3m7Au8C3YPIKn5DzhMwfDA4jqWQiLHUlFlm_gink-LLToBy9aI9
> GOoi67SDMlsYuS9BQzbttA1cjWsp-2_Bs0WKLFBu4Dppe5I_rqTEbkF6M7uGuWIJ2zicdT
> hd7t6zTOxpvfJtzvk5AD8ahB8fH-zzEHX3KGAzbZ7nB6yJwi_P3NaA1gbCZnus1DUOe6z1
> 4KJa5gG4qQ/
> s%2Fsnapshots%2F
> Gary
> On Mon, Mar 21, 2022 at 5:13 PM Shaib Al-Agily 
> <> wrote:
>> Hello,
>> Per Apache's website recommendations, our company is in the process 
>> of migrating some of its applications from log4j-1.2.14 to log4j-core-2.17.1.
>> Class "org.apache.logging.log4j.jmx.HierarchyDynamicMBean" is 
>> referenced in one of our application and that is generating an error. 
>> It appears class org.apache.logging.log4j.jmx.HierarchyDynamicMBean 
>> is not implemented in log4j 2.
>> Questions:
>> 1.           Is the class
>> org.apache.logging.log4j.jmx.HierarchyDynamicMBean implemented in log4j 2?
>> Where?
>> 2.           Is it merged in another class?
>> 3.           Is there an alternative class/solution?
>> Thank you very much
>> Shaib

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to