-
Notifications
You must be signed in to change notification settings - Fork 413
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
Spring Cloud ZooKeeper Discovery Client Not Register on ZooKeeper when using SpringBootServletInitializer #158
Comments
There is a similar problem in consul |
Any workaround on this? |
Maybe
|
I got the same issue with newer version:
I used suggested solution above by @spencergibb . I'm using properties to set the port so don't need the first part. @Autowired
|
I have same issues, any one could help on this? |
|
it seem that problem was here in EventListenerMethodProcessor, it does't work on SpringContainerClass who annotated @EventListner private static boolean isSpringContainerClass(Class<?> clazz) {
return (clazz.getName().startsWith("org.springframework.") && !AnnotatedElementUtils.isAnnotated(ClassUtils.getUserClass(clazz), Component.class));
}
private void processBean(final String beanName, final Class<?> targetType) {
if (!this.nonAnnotatedClasses.contains(targetType) && !isSpringContainerClass(targetType)) {
...
//context#addApplicationListener
}
} |
Hi, Any update on this one ? I am facing the same issue when deploy the application as WAR. |
If there are no comments then there are no updates |
Is there any other workaround ? |
Instead of
|
I have the same issuse
|
I also encountered a similar problem, mainly caused by the inconsistency of the ZooKeeper server and java client versions. Changing to a consistent version can solve the problem |
I have a spring boot application that use spring-cloud-stater-zookeeper-discovery to register the service, but it doesn't work.
the application is deployed as a WAR.
the application has connected to the zookeeper instance. Ping messages to zookeeper can be seen in the application's log and the output of
STAT
command shows a connected zookeeper client.the application does not register watchers to appointed zookeeper path, i.e.,
/services
. This can be confirmed by sendingWCHC
command to the zookeeper.Spring Boot version: 1.5.9
spring-cloud-stater-zookeeper-discovery: 1.2.0.RELEASE
web container: tomcat 8.5.23
The text was updated successfully, but these errors were encountered: