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

can't build release tar due to broken genConnectOpenAPIDocs task

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None

    Description

      KAFKA-16437 remove the dependency of Javax WS RS API and that is required by swagger. see following error stack:

      Caused by: java.lang.reflect.InvocationTargetException
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
              at io.swagger.v3.plugins.gradle.tasks.ResolveTask.resolve(ResolveTask.java:527)
              ... 118 more
      Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/Path
              at io.swagger.v3.jaxrs2.integration.JaxrsAnnotationScanner.classes(JaxrsAnnotationScanner.java:95)
              at io.swagger.v3.jaxrs2.integration.JaxrsApplicationAndAnnotationScanner.classes(JaxrsApplicationAndAnnotationScanner.java:10)
              at io.swagger.v3.oas.integration.GenericOpenApiContext.read(GenericOpenApiContext.java:693)
              at io.swagger.v3.jaxrs2.integration.SwaggerLoader.resolve(SwaggerLoader.java:332)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              ... 119 more
      Caused by: java.lang.ClassNotFoundException: javax.ws.rs.Path
              ... 124 more
      

      Hence, we should add Javax WS RS API back for Swagger

      Attachments

        1. connect_runtime_deps
          72 kB
          Chia-Ping Tsai

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: