使用Spring Boot / Spring Cloud和Websphere Liberty Profile

时间:2017-01-17 10:25:30

标签: spring-boot websphere-liberty spring-cloud-netflix

我们在我们的环境中有一些服务,我们使用嵌入式tomcat进行开发。我们没有遇到嵌入式tomcat的任何问题。

我们现在想切换到Liberty Profile。

当我们进行切换时,我们发现了很多问题。基本上,我们没有得到很多引起的: java.util.concurrent.TimeoutException 以及 org.springframework.web.client.HttpServerErrorException:500内部服务器错误。 此外,loadbalanced RestTemplate也无法正常工作。

我们已在单独的Liberty Profile服务器中部署了每个服务。 http端口上列出的服务与部署的Liberty Profile服务器端口相同。

我在github repo中添加了我用于ZUUL,Eureka,demo-service和demo-service-client的代码, http://github.com/bsridhar123/spring-cloud-demos

此外,我已经为github repo中相应服务文件夹中的每个自由配置文件服务器共享了服务器配置(server.xml )。

另外,我看到的例外情况是在日志文件中,

https://raw.githubusercontent.com/bsridhar123/spring-cloud-demos/master/demo-service-client-logs.txt

我甚至尝试使用属性

注册ipaddreses

eureka.instance.preferIpAddress =真  所有服务,尤里卡和zuul。 但是,我仍然有相同的例外。

我不确定Spring Boot / Spring Cloud Netflix是否可以与Liberty Profile Server一起使用。

使用嵌入式tomcat时,我没有看到任何异常。

如果有人遇到过类似的问题,请你帮我解决一下。

1 个答案:

答案 0 :(得分:0)

连接拒绝错误之一是端口8888,没有server.xml监听。

另一个用于http://PC249234.demo.com:54321 - zuul server.xml正在侦听:54321,在连接尝试时它是否无法判断它是否实际在该主机上运行是的。

连接拒绝应该相对容易调试。如果你看到这个TCP错误,有些东西要么是监听,要么是监听,要么是数以千计的连接(在开发环境中不太可能)超支。