Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16326

Kafka Connect unable to find javax dependency on Quarkus update to 3.X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.0
    • 4.0.0
    • connect
    • None

    Description

      We have a repository that uses both Quarkus and Kafka Connect. We're trying to update Quarkus to version 3.X but we're finding an error when configuring Kafka Connect:

      java.lang.ClassNotFoundException: javax.ws.rs.core.Configurable

      We are aware of the javax to jakarta libraries change and indeed we have changed all our direct dependencies to use jakarta. It looks like Kafka Connect still uses javax dependencies and at runtime it is unable to find them.

      We attach a minimal repo that reproduces the issue here: https://github.com/pauortegathoughtworks/quarkus-kafka-connect-bug

      Also we provide the full stack trace here:

       

      java.lang.RuntimeException: Failed to start quarkus
              at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
              at io.quarkus.runtime.Application.start(Application.java:101)
              at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
              at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
              at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
              at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
              at io.quarkus.runner.GeneratedMain.main(Unknown Source)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at io.quarkus.runner.bootstrap.StartupActionImpl$1.run(StartupActionImpl.java:113)
              at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/core/Configurable
              at org.apache.kafka.connect.cli.AbstractConnectCli.startConnect(AbstractConnectCli.java:128)
              at org.acme.KafkaConnectRunner.start(KafkaConnectRunner.java:88)
              at org.acme.KafkaConnectRunner.onStart(KafkaConnectRunner.java:73)
              at org.acme.KafkaConnectRunner_Observer_onStart_1_-42pHN04Og1MUKiGWhJM7NweE.notify(Unknown Source)
              at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:346)
              at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:328)
              at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:82)
              at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:157)
              at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:108)
              at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source)
              at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy(Unknown Source)
              ... 13 more
      Caused by: java.lang.ClassNotFoundException: javax.ws.rs.core.Configurable
              at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
              at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
              at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:518)
              at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:468)
              ... 24 more
       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pauortegatw Pau Ortega Puig
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: