Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2018

Wrong URL in documentation about Swagger UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 7.2.0.GA
    • Documentation
    • None
    • Hide

      0) Build a "business-application" from https://start.jbpm.org/ , all default setting

      1) Enable Swagger UI as told in here: https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.2/html/creating_red_hat_process_automation_manager_business_applications_with_spring_boot/business_application_configuration#bus-app-swagger_business-applications

      2) Build/Compile and then run this business application

      3) According to doc,
      -------------------------------------------------------------
      The complete set of endpoints is available at http://localhost:8090/rest/api-docs/?url=../swagger.json
      -------------------------------------------------------------
      So open a browser and hit this swagger.json url above

      4) Getting error :
      -------------------------------------------------------------
      2019-03-26 16:48:07.324 WARN 5254 — [0.0-8090-exec-6] o.a.c.j.i.WebApplicationExceptionMapper : javax.ws.rs.NotFoundException: HTTP 404 Not Found
      ......
      Caused by: java.io.FileNotFoundException: JAR entry META-INF/resources/webjars/swagger-ui/2.2.10/api-docs/lib/swagger-oauth.js not found in /home/path/to/business-application-service/target/business-application-service-1.0-SNAPSHOT.jar!/BOOT-INF/lib/swagger-ui-2.2.10.jar
      at org.springframework.boot.loader.jar.JarURLConnection.throwFileNotFound(JarURLConnection.java:185)
      at org.springframework.boot.loader.jar.JarURLConnection.connect(JarURLConnection.java:104)
      at org.springframework.boot.loader.jar.JarURLConnection.getInputStream(JarURLConnection.java:169)
      at java.net.URL.openStream(URL.java:1045)
      at org.apache.cxf.jaxrs.swagger.Swagger2Feature$SwaggerUIService.getResource(Swagger2Feature.java:431)
      ... 93 more
      -------------------------------------------------------------

      Show
      0) Build a "business-application" from https://start.jbpm.org/ , all default setting 1) Enable Swagger UI as told in here: https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.2/html/creating_red_hat_process_automation_manager_business_applications_with_spring_boot/business_application_configuration#bus-app-swagger_business-applications 2) Build/Compile and then run this business application 3) According to doc, ------------------------------------------------------------- The complete set of endpoints is available at http://localhost:8090/rest/api-docs/?url=../swagger.json ------------------------------------------------------------- So open a browser and hit this swagger.json url above 4) Getting error : ------------------------------------------------------------- 2019-03-26 16:48:07.324 WARN 5254 — [0.0-8090-exec-6] o.a.c.j.i.WebApplicationExceptionMapper : javax.ws.rs.NotFoundException: HTTP 404 Not Found ...... Caused by: java.io.FileNotFoundException: JAR entry META-INF/resources/webjars/swagger-ui/2.2.10/api-docs/lib/swagger-oauth.js not found in /home/path/to/business-application-service/target/business-application-service-1.0-SNAPSHOT.jar!/BOOT-INF/lib/swagger-ui-2.2.10.jar at org.springframework.boot.loader.jar.JarURLConnection.throwFileNotFound(JarURLConnection.java:185) at org.springframework.boot.loader.jar.JarURLConnection.connect(JarURLConnection.java:104) at org.springframework.boot.loader.jar.JarURLConnection.getInputStream(JarURLConnection.java:169) at java.net.URL.openStream(URL.java:1045) at org.apache.cxf.jaxrs.swagger.Swagger2Feature$SwaggerUIService.getResource(Swagger2Feature.java:431) ... 93 more -------------------------------------------------------------

      There is a "java.io.FileNotFoundException" in the "swagger-ui" jar if we enable and visit the Swagger UI page.

            emmurphy1@redhat.com Emily Murphy
            rhn-support-lywang Lyle Wang (Inactive)
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: