[jboss-jira] [JBoss JIRA] (WFLY-10554) OpenSAML 3.3.0 complains for missing class from "metrics-core"
Radoslav Ivanov (Jira)
issues at jboss.org
Tue Apr 14 02:46:00 EDT 2020
[ https://issues.redhat.com/browse/WFLY-10554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033735#comment-14033735 ]
Radoslav Ivanov edited comment on WFLY-10554 at 4/14/20 2:45 AM:
-----------------------------------------------------------------
I understand it is a private module and it is not recommended to use it.
However, there is a compile dependency (see my previous comments and snapshot image; also in maven central repo metrics is listed as a compile dependency of opensaml-core) and sometimes could be a matter of JVM classloading algorithm to hit class not found exception/class not def found error. It could be easily reproduced, also mentioned in previous comments, as follow (calling org.opensaml.core.config.InitializationService.initialize()):
{code:java}
Caused by: java.lang.NoClassDefFoundError: com/codahale/metrics/MetricRegistry
at org.opensaml//org.opensaml.core.metrics.impl.MetricRegistryInitializer.init(MetricRegistryInitializer.java:42)
at org.opensaml//org.opensaml.core.config.InitializationService.initialize(InitializationService.java:56)
{code}
was (Author: rady66):
I understand it is a private module and it is not recommended to use it.
However, there is a compile dependency (see my previous comments and snapshot image; also it listed in maven central repo that metrics is a compile dependency of opensaml-core) and sometimes could be a matter of JVM classloading algorithm to hit class not found exception/class not def found error. It could be easily reproduced, also mentioned in previous comments, as follow (calling org.opensaml.core.config.InitializationService.initialize()):
{code:java}
Caused by: java.lang.NoClassDefFoundError: com/codahale/metrics/MetricRegistry
at org.opensaml//org.opensaml.core.metrics.impl.MetricRegistryInitializer.init(MetricRegistryInitializer.java:42)
at org.opensaml//org.opensaml.core.config.InitializationService.initialize(InitializationService.java:56)
{code}
> OpenSAML 3.3.0 complains for missing class from "metrics-core"
> --------------------------------------------------------------
>
> Key: WFLY-10554
> URL: https://issues.redhat.com/browse/WFLY-10554
> Project: WildFly
> Issue Type: Bug
> Components: Web Services
> Affects Versions: 13.0.0.Final
> Reporter: Radoslav Ivanov
> Assignee: Jim Ma
> Priority: Major
> Attachments: screenshot-1.png
>
>
> Module OpenSAML 3.3.0 requires depedency to module "io.dropwizard.metrics:metrics-core" but it does not present. As a result ClassNotFoundException is thrown.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list