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

smallrye scanner could not find schema class in index: com.myapp.MyPojoClass

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 34.0.0.Final, 36.0.0.Final
    • MP OpenAPI
    • None
    • Hide

      have rest.war inside a main.ear, and REST API POJOs in a Wildfly module jar

      Show
      have rest.war inside a main.ear, and REST API POJOs in a Wildfly module jar
    • Workaround Exists
    • Hide

      add the jar containing the POJOs in the WAR

      Show
      add the jar containing the POJOs in the WAR
    • ---
    • ---

      smallrye scanner cannot find REST API POJOs to generate the OpenAPI schema at deploy, if those POJOs are in a Wildfly module jar.

      WARN Thread-22 [io.smallrye.openapi.runtime.scanner.OpenApiDataObjectScanner] [process] SROAP04005: Could not find schema class in index: com.myapp.MyPojoClass

      I have rest.war inside a main.ear, and in a Wildfly module jar I have the POJOs.

      Was able to make smallrye generate the schema by adding the jar containing the POJOs in the WAR file that contains my REST API.

      Given the fact that my REST API works without adding the jar containing the POJOs in the WAR, seams to be some sorts of visibility issue when it comes to smallrye.

       

      Opened an [issue|https://github.com/smallrye/smallrye-open-api/issues/2258] on smallrye and it was suggested that this might be a Wildfly issue.

              bstansbe@redhat.com Brian Stansberry
              spotra Sorin Potra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: