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

cxf-spring-boot-starter does not work with Spring Boot 1.5.0 or above

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.11, 3.2.0
    • Component/s: JAX-RS, JAX-WS Runtime
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The ServletRegistrationBean( package org.springframework.boot.context.embedded.ServletRegistrationBean) which was already marked as deprecated since version 1.4 , as part of clean-up activity in version 1.5.0 has been removed and moved to org.springframework.boot.web.servlet.ServletRegistrationBean. Hence when using cxf-spring-boot-starter-jaxrs or cxf-spring-boot-starter-jaxws with spring-boot 1.5.0 or 2.0.0 snapshot. Application fails with error java.lang.ClassNotFoundException: org.springframework.boot.context.embedded.ServletRegistrationBean.

      Below is the Javadoc provided in deprecated class org.springframework.boot.context.embedded.ServletRegistrationBean.
      /*

      • @deprecated as of 1.4 in favor of
      • {@link org.springframework.boot.web.servlet.ServletRegistrationBean}

        */
        @Deprecated
        public class ServletRegistrationBean
        extends org.springframework.boot.web.servlet.ServletRegistrationBean
        }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Fang
                Reporter:
                karthik.1987 Karthik Prasad
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: