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

Hot problem!
This exception has a lot of traffic. You can help 73 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

java.lang.IllegalStateException: serviceUrl must be set when deployed to servlet-container
at de.codecentric.boot.admin.config.AdminClientProperties.getServiceUrl(AdminClientProperties.java:132)
at de.codecentric.boot.admin.config.AdminClientProperties.getManagementUrl(AdminClientProperties.java:87)
at de.codecentric.boot.admin.config.AdminClientProperties.getHealthUrl(AdminClientProperties.java:119)
at de.codecentric.boot.admin.services.ApplicationRegistrator.createApplication(ApplicationRegistrator.java:124)
at de.codecentric.boot.admin.services.ApplicationRegistrator.register(ApplicationRegistrator.java:73)
at de.codecentric.boot.admin.services.RegistrationApplicationListener$1.run(RegistrationApplicationListener.java:89)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.