Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jmx-metrics on wildfly #11151

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Apr 17, 2024

Resolves #11143
Calling ManagementFactory.getPlatformMBeanServer() initializes java.util.logging.LogManager. This prevents wildfly from starting because it wants to use a custom LogManager implementation, but can't replace it because java.util.logging is already initialized. This PR adds a delay to calling ManagementFactory.getPlatformMBeanServer() which should allow wildfly to set up its logging before this call happens.

@laurit laurit requested review from a team and PeterF778 April 17, 2024 08:28
Copy link
Contributor

@PeterF778 PeterF778 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this.

@laurit laurit force-pushed the jmx-metrics-delay branch from e44c71f to c499d44 Compare April 18, 2024 12:45
@laurit laurit merged commit 8de3f0e into open-telemetry:main Apr 30, 2024
49 checks passed
@laurit laurit deleted the jmx-metrics-delay branch April 30, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants