Karthik Prasad created CXF-7198:
-----------------------------------

             Summary: cxf-spring-boot-starter does not work with Spring Boot 
1.5.0 or above
                 Key: CXF-7198
                 URL: https://issues.apache.org/jira/browse/CXF-7198
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS, JAX-WS Runtime
            Reporter: Karthik Prasad


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.

**
 * A {@link ServletContextInitializer} to register {@link Servlet}s in a 
Servlet 3.0+
 * container. Similar to the {@link ServletContext#addServlet(String, Servlet)
 * registration} features provided by {@link ServletContext} but with a Spring 
Bean
 * friendly design.
 * <p>
 * The {@link #setServlet(Servlet) servlet} must be specified before calling
 * {@link #onStartup}. URL mapping can be configured used {@link 
#setUrlMappings} or
 * omitted when mapping to '/*' (unless
 * {@link #ServletRegistrationBean(Servlet, boolean, String...) alwaysMapUrl} 
is set to
 * {@code false}). The servlet name will be deduced if not specified.
 *
 * @author Phillip Webb
 * @see ServletContextInitializer
 * @see ServletContext#addServlet(String, Servlet)
 * @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
}



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

Reply via email to