Ahaha, good catch! 

I was suspecting it might be something like that. Because on my box and other 
boxes I’ve tried it works fine. The problem is the file list order from the 
filesystem which is system or even hardware dependant, so it will work in some 
systems and others it will fail :)

I think an easy fix is to just add both prefix libraries in 
TomEEMicroProfileListener. Only the non common jar needs to be scanned, so we 
are adding an extra library that doesn’t need scanning, but we can think about 
it later. We probably need to do the same with health, since it also includes a 
common jar.

Thank you for your help :)

> On 6 Feb 2019, at 15:07, j4fm <james.m...@my-managed.net> wrote:
> 
> Finally got a chance to run through it.  Found it, should be pretty straight
> forward to fix metrics.  It's just because the MP prefix list causes
> duplicate matches i.e. there are two jars beginning geronimo-metrics-
> (impl+common).  It only finds the first (geronimo-metrics-common).  Health
> only works by chance because it picks up the impl before the common one.
> 
> I don't mind giving it a shot or can you may be quicker at it, let me know?
> 
> 
> 
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html

Reply via email to