[ 
https://issues.apache.org/jira/browse/CXF-6535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh closed CXF-6535.
------------------------------------

> Swagger2Feature's properties cannot be set when using Blueprint
> ---------------------------------------------------------------
>
>                 Key: CXF-6535
>                 URL: https://issues.apache.org/jira/browse/CXF-6535
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.6, 3.1.2
>            Reporter: Akitoshi Yoshida
>            Assignee: Akitoshi Yoshida
>             Fix For: 3.1.3, 3.0.7
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to