Fixes #7524 - Missing package in JmxConfiguration

Also protectAndExpose "org.eclipse.jetty.util.annotation" to make JMX annotations loaded by the server available to web applications.
This allows the server JMX mechanism (MBeanContainer) to work on web application classes too.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2022-02-02 18:04:57 +01:00
parent a8a6020ab2
commit a1439fdf60
No known key found for this signature in database
GPG Key ID: 1677D141BCF3584D
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class JmxConfiguration extends AbstractConfiguration
public JmxConfiguration()
{
addDependents(WebXmlConfiguration.class, MetaInfConfiguration.class, WebInfConfiguration.class);
protectAndExpose("org.eclipse.jetty.jmx.");
protectAndExpose("org.eclipse.jetty.util.annotation", "org.eclipse.jetty.jmx.");
}
@Override