Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19530

Add jakarta.activation:jakarta.activation-api to the testsuite/integration/microprofile classpath

XMLWordPrintable

      Avoid this in the testsuite/integration/microprofile module's server.log file:

      06:09:11,620 WARN  [org.jboss.resteasy.resteasy_jaxrs.i18n] (main) RESTEASY002145: NoClassDefFoundError: Unable to load builtin provider org.jboss.resteasy.plugins.providers.DataSourceProvider from jar:file:/opt/buildAgent/system/jetbrains.maven.runner/maven.repo.local-bt946/org/jboss/resteasy/resteasy-core/6.2.9.Final/resteasy-core-6.2.9.Final.jar!/META-INF/services/jakarta.ws.rs.ext.Providers: java.lang.NoClassDefFoundError: jakarta/activation/DataSource
      	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
      	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3373)
      	at java.base/java.lang.Class.getConstructors(Class.java:2060)
      	at org.jboss.resteasy.spi.util.PickConstructor.pickSingletonConstructor(PickConstructor.java:28)
      	at org.jboss.resteasy.core.providerfactory.Utils.createConstructorInjector(Utils.java:105)
      	at org.jboss.resteasy.core.providerfactory.Utils.createProviderInstance(Utils.java:95)
      	at org.jboss.resteasy.core.providerfactory.CommonProviders.processProviderContracts(CommonProviders.java:83)
      	at org.jboss.resteasy.core.providerfactory.ClientHelper.processProviderContracts(ClientHelper.java:102)
      	at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.processProviderContracts(ResteasyProviderFactoryImpl.java:785)
      	at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.registerProvider(ResteasyProviderFactoryImpl.java:774)
      	at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.registerProvider(ResteasyProviderFactoryImpl.java:763)
      	at org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:103)
      	at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:74)
      	at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:63)
      	at org.jboss.resteasy.plugins.providers.RegisterBuiltin.getClientInitializedResteasyProviderFactory(RegisterBuiltin.java:53)
      	at org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.getProviderFactory(ResteasyClientBuilderImpl.java:351)
      	at org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.build(ResteasyClientBuilderImpl.java:367)
      	at org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.build(ResteasyClientBuilderImpl.java:49)
      	at jakarta.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:86)
      	at org.wildfly.test.integration.microprofile.jwt.ClockSkewTest.callEcho(ClockSkewTest.java:82)
      	at org.wildfly.test.integration.microprofile.jwt.ClockSkewTest.callEchoAndExpectStatus(ClockSkewTest.java:76)
      	at org.wildfly.test.integration.microprofile.jwt.ClockSkewTest.testClockSkewExpired(ClockSkewTest.java:72)
      

      Client side use of jakarta.ws.rs.client.ClientBuilder.newClient() needs to have Jakarta Activation on the classpath to avoid that WARN.

      Eliminating the WARN is just a matter of housekeeping, to avoid distracting people who look at these test logs for other reasons.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: