Missing metrics-core-3.1.2.jar (io.dropwizard.metrics) in Wildfly 23.0.0, module org.opensaml ?

177 views
Skip to first unread message

Michael Knapp

unread,
Mar 29, 2021, 10:38:45 AM3/29/21
to WildFly
In a project I'm using saml-client from com.coveo, whicht itself depends on the libaries in the org.opensaml module. But it did not work because io.dropwizard.metrics was missing. After adding the jar everything was fine. The module.xml after my changes

<module name="org.opensaml" xmlns="urn:jboss:module:1.9">
    <properties>
        <property name="jboss.api" value="private"/>
    </properties>
    <resources>
        <resource-root path="opensaml-core-3.3.1.jar"/>
        <resource-root path="opensaml-profile-api-3.3.1.jar"/>
        <resource-root path="opensaml-saml-api-3.3.1.jar"/>
        <resource-root path="opensaml-saml-impl-3.3.1.jar"/>
        <resource-root path="opensaml-security-api-3.3.1.jar"/>
        <resource-root path="opensaml-security-impl-3.3.1.jar"/>
        <resource-root path="opensaml-soap-api-3.3.1.jar"/>
        <resource-root path="opensaml-xacml-api-3.3.1.jar"/>
        <resource-root path="opensaml-xacml-impl-3.3.1.jar"/>
        <resource-root path="opensaml-xacml-saml-api-3.3.1.jar"/>
        <resource-root path="opensaml-xacml-saml-impl-3.3.1.jar"/>
        <resource-root path="opensaml-xmlsec-api-3.3.1.jar"/>
        <resource-root path="opensaml-xmlsec-impl-3.3.1.jar"/>
        <resource-root path="cryptacular-1.2.4.jar"/>
        <resource-root path="java-support-7.3.0.jar"/>
        <resource-root path="metrics-core-3.1.2.jar"/>
    </resources>
    <dependencies>
<module name="sun.jdk" export="true" >
<imports>
<include path="sun/misc/Unsafe" />
</imports>
</module>
      <module name="java.scripting"/>
      <!--WFLY-14219 Remove deprecated <module name="javax.api"/> -->
      <module name="org.slf4j"/>
      <module name="org.apache.santuario.xmlsec"/>
      <module name="org.apache.ws.security"/>
      <module name="org.joda.time"/>
      <module name="com.google.guava"/>
      <module name="org.bouncycastle.bcmail"/>
      <module name="org.bouncycastle.bcpkix"/>
      <module name="org.bouncycastle.bcprov"/>
      <module name="org.apache.commons.codec"/>
      <module name="java.xml"/>
    </dependencies>
</module>

Michael

Michael Knapp

unread,
Mar 30, 2021, 4:44:21 AM3/30/21
to WildFly
Addendum: The exception I get with the original wildfly depoyment

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)



 
Reply all
Reply to author
Forward
0 new messages