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

19th
Apr 2017
Whitney Hunter
@whitneyh
Apr 19 2017 20:34
Hi. I'm having trouble with spring-cloud-consul. I have @EnableDiscoveryClient on my main class. My service registers fine with Consul if I run with embedded Tomcat but does not if I run in an external Tomcat. There are no errors or related messages in the console. I've run out of ideas. Does anyone have any ideas what may be going wrong?
Spencer Gibb
@spencergibb
Apr 19 2017 20:35
what version are you using @whitneyh?
prior to 1.1.0 there was spring-cloud/spring-cloud-consul#173
with war deployment you need to set server.port=xyz explicitly.
Whitney Hunter
@whitneyh
Apr 19 2017 20:39
Whatever is packaged with boot 1.5.2.RELEASE
Oh
Spencer Gibb
@spencergibb
Apr 19 2017 20:40
nothing of spring-cloud is packaged with spring-boot
Whitney Hunter
@whitneyh
Apr 19 2017 20:40
Sorry. Dalston
Spencer Gibb
@spencergibb
Apr 19 2017 20:40
:-)
with a war deployment, we don't know what port it is running on
Whitney Hunter
@whitneyh
Apr 19 2017 20:41
Ok. I'll give that a try. Thanks
Whitney Hunter
@whitneyh
Apr 19 2017 20:46
Still no go. I put it in the bootstrap config
Felipe Adorno
@FelipeAdorno
Apr 19 2017 21:15
Hy I have a problme to mapping my services, I have this configuration in zuul
    monkey-payable-loader-invoice:
      path: /v1/sponsors/*/invoice-upload
      serviceId: monkey-payable-loader
      stripPrefix: false
      sensitiveHeaders:
    monkey-payable-processor:
      path: /v1/sponsors/*/payable-templates
      serviceId: monkey-payable-processor
      stripPrefix: false
      sensitiveHeaders:
    monkey-payable-loader-payable:
      path: /v1/sponsors/*/payables-upload
      serviceId: monkey-payable-loader
      stripPrefix: false
      sensitiveHeaders:
    monkey-payable-upload-status:
      path: /v1/sponsors/*/payables-upload-status
      serviceId: monkey-payable-upload-status
      stripPrefix: false
      sensitiveHeaders:
    monkey-sponsor:
      path: /v1/sponsors/**
      serviceId: monkey-sponsor
      stripPrefix: false
      sensitiveHeaders:
Spencer Gibb
@spencergibb
Apr 19 2017 21:15
@whitneyh log an issue?
Felipe Adorno
@FelipeAdorno
Apr 19 2017 21:16
when I try accss /v1/sponsors/12/payable-templates the zuul redirect to monkey-sponsor but I nedd redirect to monkey-payable-processor
how I configure zuul to do this?
Spencer Gibb
@spencergibb
Apr 19 2017 21:16
zuul doesn't do redirects
monkey-payable-processor did the redirect
maybe you didn't mean redirect
Felipe Adorno
@FelipeAdorno
Apr 19 2017 21:18
Yes I didn't mean redirect rs, when I access /v1/sponsors/12/payable-templates zuul call the monkey-sponsor service but if you see the mapping the correct service is monkey-payable-processor
Spencer Gibb
@spencergibb
Apr 19 2017 21:20
seems like that should work
Felipe Adorno
@FelipeAdorno
Apr 19 2017 21:21
Yes, this work I have problem with my production enviroment, I test in localhost and everithing works fine
thanks @spencergibb for your help
Spencer Gibb
@spencergibb
Apr 19 2017 21:22
hmm, you'll have to figure out the difference between the two then.
Whitney Hunter
@whitneyh
Apr 19 2017 21:29
@spencergibb ok. Thanks for the help.