These are chat archives for spring-cloud/spring-cloud

29th
Jan 2018
muhmadtabrez
@muhmadtabrez
Jan 29 2018 06:35
Hi @dsyer is there any example for angular 2 spring security oauth2 logout with.
as i have seen on of your example for angular1.x for spring security
maskleo
@maskleo
Jan 29 2018 07:15
hello, is there any example for zuul https?
Dave Syer
@dsyer
Jan 29 2018 09:02
@muhmadtabrez you probably haven't seen it recently then (it was updated to Angular from AngularJS last year)
@maskleo unclear what you mean. HTTPS on the backend? In the Zuul layer? In a proxy in front of that? (There are no samples specifically about any of that, but it's not rocket science.)
Haruhiko Nishi
@hanishi
Jan 29 2018 09:24

Hi, I don't know if it is a bug or it is by design but I see unexpected Tomcat initialized with port(s): 0 (http) entries in the start up log files from all of the instances that are deployed to yarn cluster with having the deployment property set as deployer.<appname>.count=10


2018-01-29 17:32:02.618  INFO 24043 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 0 (http)
2018-01-29 17:32:02.631  INFO 24043 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2018-01-29 17:32:02.632  INFO 24043 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.11
2018-01-29 17:32:02.882  INFO 24043 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-01-29 17:32:02.882  INFO 24043 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 6107 ms

All of the instance launched in a Yarn cluster will be therefore identified as hostname.domain:0 when registering themselves to Eureka server. This causes registry record to be overwritten.
Why does Tomcat get initialized with port 0? Is there any workaround to address this issue so each one of them will launch its embedded tomcat with none 0 port?

muhmadtabrez
@muhmadtabrez
Jan 29 2018 09:55
@dsyer can you please send me the updated link
Jagmohan Sharma
@JagmohanSharma
Jan 29 2018 10:51
Hi Team,
I have one doubt regarding spring 's ConfigurationClassPostProcessor order of execution as would it possible to execute custom BeanDefinitionRegistryPostProcessor before ConfigurationClassPostProcessor by setting higher precedence?
Dave Syer
@dsyer
Jan 29 2018 12:10
@JagmohanSharma A BeanDefinitionRegistryPostProcessor is always executed before a BeanPostProcessor, so you don't have to do anything special, if I understand the question.
fudali
@fudali113
Jan 29 2018 16:50
I want to test the correctness of the feign interface. What should I do?
Abhishek Dujari
@abshkd
Jan 29 2018 21:06
i cant seem to get Eureka to register AWS public hostname. Ideally I would use internal hostnames/ip, and that works fine. But one microservice is in another VPC and must register with external hostname. can't see to do that. I checked the docs but got confused, did a bunch of trial and error a few weeks back. Now I really need to get it working