Re: SEVERE - Can't initialize Metrics Registrar
Bart van Leeuwen <[email protected]> Fri, 27 Oct 2023 11:35:56 +0200
| Newsgroups | gmane.comp.java.openejb.user |
|---|---|
| Message-ID | <OFF25121B5.344AAD5B-ONC1258A55.0034932D-C1258A55.0034BAEF__44497.4628438771$1698399385$gmane$org@netage.nl> |
Hi, I've created a simple testcase which creates a war file which when deployed for a second time with a different name generates the error https://github.com/semanticfire/tomee-test Take a Tomee Plus 9.1.0 and copy test.war to webapps/test1.war and webapps/test2.war The deployment of test2.war will result in the error. Met Vriendelijke Groet / With Kind Regards Bart van Leeuwen From: "Bart van Leeuwen" <[email protected]> To: [email protected] Date: 26-10-2023 16:27 Subject: Re: SEVERE - Can't initialize Metrics Registrar Hi, Looking at the source code where this error comes from it seems it is related to Tomee Microprofile. The error occurs when multiple apps are deployed, I have not been able yet to find what attributes the apps need to have to casue this error. Met Vriendelijke Groet / With Kind Regards Bart van Leeuwen From: "Bart van Leeuwen" <[email protected]> To: [email protected] Date: 26-10-2023 12:59 Subject: SEVERE - Can't initialize Metrics Registrar Hi, When deploying an app on Tomee 9.1.1 I get the following error on the console: SEVERE - Can't initialize Metrics Registrar: SRMET00009: Gauge with id MetricID{name='classloader.loadedClasses.count', tags=[]} already exists The app is a war which contains a MessageDriven class I'm not using any of the metrics etc, nor can I find information about this error. The app works without any issues. Thanks in advance, Met Vriendelijke Groet / With Kind Regards Bart van Leeuwen