2

I'm trying to deploy spring-boot .war application on standalone servlet container (Pivotal tc Server) and have issue with spring-boot admin page. When I run app using spring-boot:run command, I have proper boot spring-boot admin UI page, but when I deploy war on tcServer, on root path / I see spring-boot admin page without any applications inside it: How I enable admin page:

  @EnableAdminServer
    public class AppRunner extends SpringBootServletInitializer { ... }

In properties I set:

server.port=9000

When running tcServer I see in logs:

jvm 1 | [2017.08.18 12:42:04.180 AST] [WARN ] [d.c.b.a.s.ApplicationRegistrator] [pool-3-thread-1] [Failed to register application as null at spring-boot-admin http://localhost:9000/api/applications): serviceUrl must be set when deployed to servlet-container]

tcServer is ran on 8080 default port. Can anybody give advice how to see my app in spring-boot admin UI on external server?

stinger
  • 3,790
  • 1
  • 19
  • 30
  • any reason to downvote? – stinger Aug 18 '17 at 09:19
  • 1
    I edited my question to remove all unclear moments..but i think if anyone want to help it's more productive to ask in comment rather than downvote.. – stinger Aug 18 '17 at 11:11
  • 1
    Which version do you use ? Could this apply: https://github.com/codecentric/spring-boot-admin/issues/260 ? Have you set serviceUrl ? – Marged Aug 18 '17 at 12:07

1 Answers1

4

Finally I solved this by adding property:

spring.boot.admin.client.service-url=http://localhost:9000

To the application.properties config.

stinger
  • 3,790
  • 1
  • 19
  • 30