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

Failure to construct bean of org.apache.cxf.jaxrs.spring.SpringViewResolverProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2, 3.1.15
    • JAX-RS
    • None
    • Unknown

    Description

      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:

      ***************************
      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'
      

      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.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            aukevanleeuwen Auke van Leeuwen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: