We have a few services in our environment for which we use embedded tomcat for development. We did not face any issues with embedded tomcat.
We now want to switch to Liberty Profile.
When we made the switch, we found lots of issues. Basically, we are not getting lots of Caused by: java.util.concurrent.TimeoutException as well as org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error. Also, loadbalanced RestTemplate is also not working as expected.
We have deployed each of the services in separate Liberty Profile servers. The services listed on http port which is same as that of deployed Liberty Profile server port.
I have added the code I used for ZUUL,Eureka , demo-service and demo-service-client in the github repo, http://github.com/bsridhar123/spring-cloud-demos
Also, I have shared the server configuration (server.xml) for each of the liberty profile servers in the respective service folder in github repo.
Also, the exceptions I see are in the log file,
https://raw.githubusercontent.com/bsridhar123/spring-cloud-demos/master/demo-service-client-logs.txt
I even tried with registering with ipaddreses, using the property,
eureka.instance.preferIpAddress=true for all services, eureka and zuul. But, I stil have the same exceptions.
I am not sure if Spring Boot/Spring Cloud Netflix can be used with Liberty Profile Server.
I see none of the exceptions when using embedded tomcat.
If anyone has faced a similar issue, can you please help me on this.