Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6535

Swagger2Feature's properties cannot be set when using Blueprint

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1.2
    • Fix Version/s: 3.1.3, 3.0.7
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      You will get the following error when setting some properties using Blueprint. In other words, when you are overwriting some default properties as in
      <blueprint ...>
      ...
      <bean id="swagger2Feature" class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
      <property name="basePath" value="/app"/>
      </bean>

      2015-08-12 19:08:49,224 | ERROR | FelixStartLevel | BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - 1.4.2 | Unable to start blueprint container for bundle org.apache.cxf.samples.jax_rs_description_swagger2_osgi
      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find property descriptor basePath on class org.apache.cxf.jaxrs.swagger.Swagger2Feature
      at org.apache.aries.blueprint.container.BeanRecipe.getPropertyDescriptor(BeanRecipe.java:954)[15:org.apache.aries.blueprint.core:1.4.2]
      at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:936)[15:org.apache.aries.blueprint.core:1.4.2]
      at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:907)[15:org.apache.aries.blueprint.core:1.4.2]
      at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)[15:org.apache.aries.blueprint.core:1.4.2]
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)[15:org.apache.aries.blueprint.core:1.4.2]
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[15:org.apache.aries.blueprint.core:1.4.2]
      at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[15:org.apache.aries.blueprint.core:1.4.2]
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
      at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[15:org.apache.aries.blueprint.core:1.4.2]
      ...

      The problem occurs in CXF version 3.1.2 and 3.0.6 for both Swagger2Feature and SwaggerFeature.

        Attachments

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              ay Akitoshi Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: