cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kieselhorst (JIRA)" <>
Subject [jira] [Created] (CXF-7092) Swagger2Feature tries to resolve swagger-ui resources with api-docs
Date Mon, 17 Oct 2016 09:02:59 GMT
Dennis Kieselhorst created CXF-7092:

             Summary: Swagger2Feature tries to resolve swagger-ui resources with api-docs
                 Key: CXF-7092
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.1.7
         Environment: Spring Boot 1.4.1
Swagger 2.2.2
            Reporter: Dennis Kieselhorst
             Fix For: 3.1.8

Add Swagger2Feature for customization to the class annotated with @SpringBootApplication,
   public Swagger2Feature swagger2Feature() {
      Swagger2Feature swagger2Feature = new Swagger2Feature();
      swagger2Feature.setContact("person who knows the API");

      return swagger2Feature;

Open url for swagger UI in browser will fail with:
Caused by: JAR entry META-INF/resources/webjars/swagger-ui/2.2.2/api-docs/lib/swagger-oauth.js
not found in /work/m2repository/org/webjars/swagger-ui/2.2.2/swagger-ui-2.2.2.jar
	at org.apache.cxf.jaxrs.swagger.Swagger2Feature$SwaggerUIService.getResource(
	... 102 more

Please note that it works correctly when the Swagger2Feature is auto-configured without customizations.

This message was sent by Atlassian JIRA

View raw message