[ 
https://issues.apache.org/jira/browse/CXF-6869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302688#comment-15302688
 ] 

Vedran Pavic commented on CXF-6869:
-----------------------------------

Sergey - I'm back at this, sorry for the delay :)

Regarding your sample, I've taken a better look at it, and the problem is that 
the auto-configuration isn't used at all.
This is because your Spring Boot main class ({{SampleScanRestApplication}}) 
imports {{SpringComponentScanServer}}, which in turn imports {{JaxRsConfig}} 
which imports {{META-INF/cxf/cxf.xml}}. This registers {{SpringBus}} bean which 
effectively disabled auto-configuration since it has condition 
{{@ConditionalOnMissingBean(SpringBus.class)}}.

I'm working on improving the auto-configuration to provide better support for 
JAX-RS use case. Hopefully I'll have this finished very soon, together with my 
own JAX-RS sample application (similar to JAX-WS one I already provided).

Additionally, I saw you removed some imports from 
{{cxf-spring-boot-autoconfigure}}'s POM in commit {{f8d941e}}, any particular 
reason for that?
I'll need {{cxf-rt-frontend-jaxws}} and {{cxf-rt-frontend-jaxrs}} dependencies 
back for obvious reasons, and regarding {{spring-boot-configuration-processor}} 
you can find more info here: 
http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#configuration-metadata-annotation-processor


> Consider adding Spring Boot starter
> -----------------------------------
>
>                 Key: CXF-6869
>                 URL: https://issues.apache.org/jira/browse/CXF-6869
>             Project: CXF
>          Issue Type: New Feature
>          Components: Integration
>            Reporter: Vedran Pavic
>            Assignee: Sergey Beryozkin
>
> I've recently authored a PR in Spring Boot to add support for 
> auto-configuration of {{CXFServlet}} and default CXF's configuration:
> https://github.com/spring-projects/spring-boot/pull/5659
> The PR was closed with "won't fix" resolution since Boot team are unwilling 
> to add CXF as a dependency to the project. Instead a 3rd party starter was 
> suggested.
> The concept of a 3rd party starter is generally encouraged for technologies 
> that don't have first-class support in projects from Spring portfolio. Such 
> 3rd party starters are listed here:
> https://github.com/spring-projects/spring-boot/blob/master/spring-boot-starters/README.adoc
> If CXF team is interested, I'm willing to port my PR to CXF.
> Note that the original PR was focused around JAX-WS support, but can be 
> easily expanded to include JAX-RS support as well.



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

Reply via email to