java-spring-web icon indicating copy to clipboard operation
java-spring-web copied to clipboard

opentracing-spring-web-starter incompatible with Spring Boot 2.6

Open mihkelmuur opened this issue 4 years ago • 1 comments

After update to Spring Boot 2.6 an application relying on opentracing-spring-web-starter fails to start:

2021-11-30T11:56:22.972+0000 ERROR o.s.b.d.LoggingFailureAnalysisReporter   

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    io.opentracing.contrib.spring.web.starter.SkipPatternAutoConfiguration$ManagementSkipPatternProviderConfig.getPatternForManagementServerProperties(SkipPatternAutoConfiguration.java:68)

The following method did not exist:

    'org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties$Servlet org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties.getServlet()'
...

The Javadoc on ManagementServerProperties.Servlet.getContextPath() suggest to replace ManagementServerProperties.getServlet().getContextPath() with ManagementServerProperties.getBasePath():

Deprecated. since 2.4.0 for removal in 2.6.0 in favor of ManagementServerProperties.getBasePath()

mihkelmuur avatar Nov 30 '21 11:11 mihkelmuur

Is there any progress for the fix for this issue?

bzdgn avatar May 03 '22 11:05 bzdgn