Nitin Ware
Nitin Ware

Reputation: 349

Unable to start the Spring Cloud ZipKin Server

I am not able to start the Spring Cloud ZipKin Server, It is giving below mentioned exception.

BeanCreationException: Cannot create binder factory, no META-INF/spring.binders resources found on the classpath

Below are my maven dependencies -

<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-zipkin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-zipkin-stream</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
</dependencies>

Also my application startup class looks as below.

@SpringBootApplication
@EnableZipkinStreamServer
public class ZipkinApplication {
    public static void main(String[] args) {
            SpringApplication.run(ZipkinApplication.class, args);
    }
}

Any help is highly appreciated.

Upvotes: 1

Views: 2329

Answers (1)

Marcin Grzejszczak
Marcin Grzejszczak

Reputation: 11179

Spring Cloud Zipkin Stream is using Spring Cloud Stream underneath. You need to provide how do you want to send the spans to Zipkin - thus you need a binder. One possible binder is the RabbitMQ binder. Check out this: https://github.com/spring-cloud-samples/sleuth-documentation-apps/blob/master/zipkin-server/build.gradle#L6

Upvotes: 4

Related Questions