Am Mittwoch, den 08.07.2020, 11:27 -0500 schrieb exabrial12:
> I know JMX2.0 was never officially ratified, but we've loved the
> ability of
> TomEE to auto-register JMX beans using this api:
> https://tomee.apache.org/examples-trunk/mbean-auto-registration >
> We typically couple that with Jolokia and Telegraf to monitor key
> stats in
> our applications.
> We're currently testing an upgrade from TomEE7/jdk8 to TomEE8/jdk11.
> the compilation phase, maven is telling us it can't find the class
> definitions for these annotations anymore:
> error: cannot find symbol
> [ERROR] symbol: class ManagedOperation
> [ERROR] location: package javax.management
> The JAR with the annotation definitions is a provided dependency, so
> seems very strange. Thank you!
> Sent from:
I have a feeling this may be the issue: the javax.management package may be
exported by a JDK module and the new classloading system will only allow the
package to be loaded from exactly one module... whereass java8- allows
classloading of that package from any jar.