Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22228

ClassNotFoundException when using provided opentracing-api dependencies

    XMLWordPrintable

Details

    Description

      When trying to access deployment's REST endpoint, that utilizes org.eclipse.microprofile.opentracing.ClientTracingRegistrar underneath, the user is greeted with ClassNotFoundException

      Caused by: java.lang.NoClassDefFoundError: org/eclipse/microprofile/opentracing/ClientTracingRegistrar
      	at deployment.ROOT.war//org.jboss.xpaas.microprofile.opentracing.UrlEndpoint.get(UrlEndpoint.java:18)
      	at deployment.ROOT.war//org.jboss.xpaas.microprofile.opentracing.UrlEndpoint$Proxy$_$$_WeldClientProxy.get(Unknown Source)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:138)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:546)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:435)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:396)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:398)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:365)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:338)
      	at org.jboss.resteasy.resteasy-jaxrs@3.15.1.Final-redhat-00001//org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)
      

      This is a OCP specific issue in XP3. We do not see this with the zip distribution.
      This is regression against XP2 (both OCP Image & ZIP).

      MD5 sums didn't show any differences between JARs

      OCP Image

      md5sum /opt/jboss/container/wildfly/s2i/galleon/galleon-m2-repository/org/eclipse/microprofile/opentracing/microprofile-opentracing-api/2.0.0.redhat-00002/microprofile-opentracing-api-2.0.0.redhat-00002.jar
      b77ed15687a344e17907a577bde441fe 

       

      ZIP Distribution

      md5sum modules/system/layers/microprofile/org/eclipse/microprofile/opentracing/main/microprofile-opentracing-api-2.0.0.redhat-00002.jar
      b77ed15687a344e17907a577bde441fe

      Attachments

        Issue Links

          Activity

            People

              kwills@redhat.com Ken Wills
              rhn-engineering-spriadka Simon Priadka (Inactive)
              Simon Priadka Simon Priadka (Inactive)
              Simon Priadka Simon Priadka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: