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

Auke van Leeuwen commented on CXF-7555:
---------------------------------------

No, not that I know. We have a spring boot application which automagically 
scans everything below the main spring boot class, but that is in another 
package. Next to that I have this configuration in {{application.yml}}:

{noformat}
cxf:
  jaxrs:
    component-scan: true
    classes-scan-packages: app.ourpackage.something
{noformat}


> Failure to construct bean of 
> org.apache.cxf.jaxrs.spring.SpringViewResolverProvider
> -----------------------------------------------------------------------------------
>
>                 Key: CXF-7555
>                 URL: https://issues.apache.org/jira/browse/CXF-7555
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.2.1
>            Reporter: Auke van Leeuwen
>
> I'm using the {{cxf-spring-boot-starter-jaxrs}} module in my project that is 
> exposing a RESTful API. However upgrading from {{3.2.0}} to {{3.2.1}} broke 
> my application:
> {noformat}
> ***************************
> APPLICATION FAILED TO START
> ***************************
> Description:
> Parameter 1 of constructor in 
> org.apache.cxf.jaxrs.spring.SpringViewResolverProvider required a bean of 
> type 'org.springframework.web.servlet.LocaleResolver' that could not be found.
>       - Bean method 'localeResolver' in 
> 'WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter' not loaded because 
> @ConditionalOnProperty (spring.mvc.locale) did not find property 'locale'
> {noformat}
> It seems like {{org.apache.cxf.jaxrs.spring.SpringViewResolverProvider}} was 
> introduced in {{3.2.1}} but that assumes that I'm *also* using Spring MVC, 
> which I don't.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to