[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:45: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 commented on WFLY-10554:
----------------------------------------

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