-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: io.opentracing.ScopeManager #37
Comments
Hi @rtarasov Could we please see your |
hi Georgios @geoand ! Thank you for the prompt reply.
Thank you in advance! Roman. |
Hi Roman, Can you please remove
and try it out? That is a pretty old version that is almost certainly incompatible with the what the starter uses (see here) |
Georgios! If I comment out that dependency and comment the bean provider method I get: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reporter' defined in class path resource [io/opentracing/contrib/java/spring/jaeger/starter/JaegerAutoConfiguration.class]: Unsatisfied dependency expressed through method 'reporter' parameter 2; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'io.opentracing.contrib.java.spring.jaeger.starter.ReporterAppender' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=false)} |
That's weird. Can you please post your Java Spring configuration? |
Spring config is empty. Only server.port is present there. I have commented out all bean providers also! So it is bold application! |
Would it be possible to zip it and upload it so I can try it? |
Than you Georgios! |
Cool, I'll give it a shot |
Thank you!
…On Fri, 8 Mar 2019 at 23:42, Georgios Andrianakis ***@***.***> wrote:
Cool, I'll give it a shot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOSNsWg7fvEJyR6jES_t_4LIC7nZOlL2ks5vUtk8gaJpZM4bl9U4>
.
|
This is a bug in the Spring Boot version that is being used in your app. Basically it's ignoring If you update to say |
Thank you Georgios! It works! |
Glad to hear it! I will close the issue then. |
Hi Guys!
After installation of either of starters getting a below exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'io.opentracing.contrib.spring.tracer.configuration.TracerRegisterAutoConfiguration': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: io.opentracing.ScopeManager
If I comment out the below @bean annotated method:
@bean
public io.opentracing.Tracer jaegerTracer() {
return new Configuration("spring-boot", new Configuration.SamplerConfiguration(ProbabilisticSampler.TYPE, 1),
new Configuration.ReporterConfiguration())
.getTracer();
}
I get an Exception:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'io.opentracing.contrib.java.spring.jaeger.starter.ReporterAppender' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=false)}
Spring boot version: 1.5.3
java-spring-jaeger version: 0.2.2
Could you please help?
The text was updated successfully, but these errors were encountered: