Closed rsandidfc closed 1 year ago
I think io.dropwizard.metrics:metrics-jersey2 can do the thing. Because the referred version uses quite an old jersey: https://repo1.maven.org/maven2/io/dropwizard/metrics/metrics-jersey2/3.2.5/metrics-jersey2-3.2.5.pom (2.11) you could try the usage of metrics-jersey3 but that version also uses Jersey 3.0.4 which is not 3.1.x so I'm not sure what to use instead, but the dependency could go from there.
ah, my bad, there is metrics-jersey31: https://repo1.maven.org/maven2/io/dropwizard/metrics/metrics-jersey31/4.2.19/metrics-jersey31-4.2.19.pom that is probably what you need :)
Ugh, and I had my dependency for metrics explicitly exclude jersey so I didn't see the dependency in the hierarchy! You are a hero, thank you!!!
Similar to #5135 but the solution to that case doesn't apply. The Jersey Server is running on Tomcat 10.1.8. It fails to load my Application class. I've been banging my head against this for three days trying to figure out where on earth its looking for the old javax.ws.rs.core but can't find it. Any help greatly appreciated!
My maven dependencies already include Jersey Client 3.1.1, and there are no javax dependencies in the hierarchy: