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

2nd
Nov 2017
redtankd
@redtankd
Nov 02 2017 09:30
I am trying spring cloud config server. My client's configuration has a context.initializer.classes property. But when the client load configuration from the config server, the server will load class according context.initializer.classes and then report classnotfound error. The context.initializer.classes property is for client side, so the config server should not run the context initializer.
Dave Syer
@dsyer
Nov 02 2017 10:22
Is it a system property?
Who uses it?
I don't recognize the name of the property from Spring Boot or Spring Cloud
redtankd
@redtankd
Nov 02 2017 12:06
The reason maybe is that the config server load client's configuration with a new SpringApplication. When SpringApplication bootstrap, Spring load context.initializer.classes.
But the context.initializer.classes should be in the client side.
Dave Syer
@dsyer
Nov 02 2017 12:14
I'll have a look and see if I can understand
Thanks
Dave Syer
@dsyer
Nov 02 2017 12:56
Where did you set the context.initializer.classes exactly?
And is the config server in bootstrap mode?
Dave Syer
@dsyer
Nov 02 2017 13:23
OK, I get it. Looks like a bug to me
Do you want to raise a ticket?
Not sure how it could be fixed really.
It might be better not to put context.initializer.classes in remote config files.
Or if you must, I guess you need the config server to have those classes available
It's fragile at best, even if it worked.