java.lang.IllegalStateException: serviceUrl must be set when deployed to servlet-container

GitHub | jiangyuhe123 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    Error when startup by giving message "serviceUrl must be set when deployed to servlet-container"

    GitHub | 6 months ago | jiangyuhe123
    java.lang.IllegalStateException: serviceUrl must be set when deployed to servlet-container

    Root Cause Analysis

    1. java.lang.IllegalStateException

      serviceUrl must be set when deployed to servlet-container

      at de.codecentric.boot.admin.config.AdminClientProperties.getServiceUrl()
    2. de.codecentric.boot
      RegistrationApplicationListener$1.run
      1. de.codecentric.boot.admin.config.AdminClientProperties.getServiceUrl(AdminClientProperties.java:132)
      2. de.codecentric.boot.admin.config.AdminClientProperties.getManagementUrl(AdminClientProperties.java:87)
      3. de.codecentric.boot.admin.config.AdminClientProperties.getHealthUrl(AdminClientProperties.java:119)
      4. de.codecentric.boot.admin.services.ApplicationRegistrator.createApplication(ApplicationRegistrator.java:124)
      5. de.codecentric.boot.admin.services.ApplicationRegistrator.register(ApplicationRegistrator.java:73)
      6. de.codecentric.boot.admin.services.RegistrationApplicationListener$1.run(RegistrationApplicationListener.java:89)
      6 frames
    3. Spring Context
      DelegatingErrorHandlingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames