spring-cloud / spring-cloud-commons

Common classes used in different Spring Cloud implementations
Apache License 2.0
705 stars 700 forks source link

In tomcat container,Consul could not listening WebServerInitializedEvent.so,consul could not discover service #390

Closed zhengzehou closed 5 years ago

zhengzehou commented 6 years ago

In spring-cloud 2.0, project start in tomcat,but consul can't find the service,because could not Listening to WebServerInitializedEvent

In tomcat could not Listening to WebServerInitializedEvent ,so consul register method is not executed

who product WebServerInitializedEvent?why int tomcat not happend? My current solution is listening ContextRefreshedEvent and call consulAutoServiceRegistration.start ().It works.

marcingrzejszczak commented 6 years ago

Can you please replicate this in a test so that we can see whether it's a problem or not?

spring-projects-issues commented 5 years ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.